From: Greg Beaver Date: Sat, 5 Jan 2008 04:30:30 +0000 (+0000) Subject: new test X-Git-Tag: RELEASE_2_0_0a1~1022 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41762671c84a5fc90a897c9f1c58d952e7470538;p=php new test --- diff --git a/ext/phar/tests/frontcontroller3.phar b/ext/phar/tests/frontcontroller3.phar index 7ddcad29d4..41c43d9da5 100644 Binary files a/ext/phar/tests/frontcontroller3.phar and b/ext/phar/tests/frontcontroller3.phar differ diff --git a/ext/phar/tests/frontcontroller3.phar.inc b/ext/phar/tests/frontcontroller3.phar.inc index 955606d111..60d9ee0708 100644 --- a/ext/phar/tests/frontcontroller3.phar.inc +++ b/ext/phar/tests/frontcontroller3.phar.inc @@ -5,7 +5,7 @@ $a['a.php'] = 'hio'; $a['a.jpg'] = 'hio'; $a['a.phps'] = 'setStub(' "a.phps")); echo "oops did not run\n"; var_dump($_ENV, $_SERVER); __HALT_COMPILER();'); diff --git a/ext/phar/tests/frontcontroller8.phpt b/ext/phar/tests/frontcontroller8.phpt index 812bb38efb..ea46f36b3c 100644 --- a/ext/phar/tests/frontcontroller8.phpt +++ b/ext/phar/tests/frontcontroller8.phpt @@ -15,6 +15,6 @@ Status: 404 Not Found File Not Found<title> </head> <body> - <h1>404 - File /index.php Not Found</h1> + <h1>404 - File index.php Not Found</h1> </body> </html> \ No newline at end of file diff --git a/ext/phar/tests/frontcontroller9.phpt b/ext/phar/tests/frontcontroller9.phpt new file mode 100644 index 0000000000..e5dc64e711 --- /dev/null +++ b/ext/phar/tests/frontcontroller9.phpt @@ -0,0 +1,16 @@ +--TEST-- +Phar front controller rewrite array +--SKIPIF-- +<?php if (!extension_loaded("phar")) die("skip"); ?> +--ENV-- +SCRIPT_NAME=/frontcontroller9.php/hi +REQUEST_URI=/frontcontroller9.php/hi +--FILE_EXTERNAL-- +frontcontroller3.phar +--EXPECTHEADERS-- +Content-type: text/html +--EXPECT-- +<code><span style="color: #000000"> +<span style="color: #0000BB"><?php </span><span style="color: #007700">function </span><span style="color: #0000BB">hio</span><span style="color: #007700">(){}</span> +</span> +</code> \ No newline at end of file