xref: /PHP-8.3/ext/phar/tests/front.phar.phpt (revision 1a370d33)
1--TEST--
2Phar front controller with mounted external file
3--INI--
4default_charset=UTF-8
5opcache.validate_timestamps=1
6--EXTENSIONS--
7phar
8--SKIPIF--
9<?php
10if (getenv('SKIP_PRELOAD')) die('skip Unknown failure');
11?>
12--ENV--
13SCRIPT_NAME=/front.phar.php
14REQUEST_URI=/front.phar.php/index.php
15PATH_INFO=/index.php
16--EXPECTHEADERS--
17Content-type: text/html; charset=UTF-8
18--FILE_EXTERNAL--
19files/blog.phar
20--EXPECTF--
21string(%d) "<xml version="1.0" encoding="UTF-8">
22<config>
23 <database>
24  <host>localhost</name>
25  <user>squirrel</user>
26  <pass>nuts</pass>
27  <db>hoard</db>
28 </database>
29</config>
30"
31