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