diff options
author | Greg Beaver <cellog@php.net> | 2008-01-12 22:25:40 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-01-12 22:25:40 +0000 |
commit | 9131f152ba9df655c93495a6bfc757f01ab591d7 (patch) | |
tree | d338f5bb39e22b757475757c8d3c2bfceefb2ae6 /ext/phar/tests/frontcontroller22.phpt | |
parent | f5e4ff21ddc935d2a8551f2dea0938ec20422286 (diff) | |
download | php-git-9131f152ba9df655c93495a6bfc757f01ab591d7.tar.gz |
new test for inclusion within phar that takes CWD into account
Diffstat (limited to 'ext/phar/tests/frontcontroller22.phpt')
-rw-r--r-- | ext/phar/tests/frontcontroller22.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/phar/tests/frontcontroller22.phpt b/ext/phar/tests/frontcontroller22.phpt new file mode 100644 index 0000000000..8053b61bf2 --- /dev/null +++ b/ext/phar/tests/frontcontroller22.phpt @@ -0,0 +1,18 @@ +--TEST-- +Phar front controller include from cwd test 1 +--SKIPIF-- +<?php if (!extension_loaded("phar")) die("skip"); ?> +--ENV-- +SCRIPT_NAME=/frontcontroller22.php/index.php +REQUEST_URI=/frontcontroller22.php/index.php +--FILE_EXTERNAL-- +frontcontroller13.phar +--EXPECTHEADERS-- +Content-type: text/html +--EXPECTF-- +string(4) "test" +string(12) "oof/test.php" + +Warning: include(phar://%s/./hi.php): failed to open stream: phar error: "hi.php" is not a file in phar "%sfrontcontroller22.php" in phar://%s/oof/test.php on line %d + +Warning: include(): Failed opening './hi.php' for inclusion (include_path='%s') in phar://%soof/test.php on line %d
\ No newline at end of file |