From: Greg Beaver Date: Wed, 30 Apr 2008 20:14:15 +0000 (+0000) Subject: increase code coverage to test cwd stuffs X-Git-Tag: RELEASE_2_0_0b1~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d27fab9c4be223c04fc9cafda9155c668da81cc;p=php increase code coverage to test cwd stuffs --- diff --git a/ext/phar/tests/files/frontcontroller18.phar b/ext/phar/tests/files/frontcontroller18.phar index b24d619a9d..ade248fb42 100644 Binary files a/ext/phar/tests/files/frontcontroller18.phar and b/ext/phar/tests/files/frontcontroller18.phar differ diff --git a/ext/phar/tests/files/frontcontroller19.phar.inc b/ext/phar/tests/files/frontcontroller19.phar.inc new file mode 100644 index 0000000000..561cc45539 --- /dev/null +++ b/ext/phar/tests/files/frontcontroller19.phar.inc @@ -0,0 +1,25 @@ +'; +$a['another.php'] = ''; +$a->setStub('getMessage() . "\n"); +} +echo "oops did not run\n"; +var_dump($_ENV, $_SERVER); +__HALT_COMPILER();'); +?> diff --git a/ext/phar/tests/frontcontroller34.phpt b/ext/phar/tests/frontcontroller34.phpt new file mode 100644 index 0000000000..636667032a --- /dev/null +++ b/ext/phar/tests/frontcontroller34.phpt @@ -0,0 +1,16 @@ +--TEST-- +Phar front controller with cwd +--SKIPIF-- + +--ENV-- +SCRIPT_NAME=/frontcontroller34.php +REQUEST_URI=/frontcontroller34.php/start/index.php +PATH_INFO=/start/index.php +--EXPECTHEADERS-- +Content-type: text/html +--FILE_EXTERNAL-- +files/frontcontroller19.phar +--EXPECT-- +start/index.php +start/another.php +another.php