1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/phar/tests/front.phar.phpt
Nikita Popov 0374cf08c7 Add --file-cache-prime/use options to run-tests
--file-cache-prime populates the file cache,
--file-cache-use uses the file cache.

And fix a number of tests to run under file cache or disabled
timestamp validation.
2020-05-20 15:29:32 +02:00

27 lines
561 B
PHP

--TEST--
Phar front controller with mounted external file
--INI--
default_charset=UTF-8
opcache.validate_timestamps=1
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--ENV--
SCRIPT_NAME=/front.phar.php
REQUEST_URI=/front.phar.php/index.php
PATH_INFO=/index.php
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
--FILE_EXTERNAL--
files/blog.phar
--EXPECTF--
string(%d) "<xml version="1.0" encoding="UTF-8">
<config>
<database>
<host>localhost</name>
<user>squirrel</user>
<pass>nuts</pass>
<db>hoard</db>
</database>
</config>
"