summaryrefslogtreecommitdiff
path: root/ext/phar/tests/frontcontroller6.phpt
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-01-05 04:03:33 +0000
committerGreg Beaver <cellog@php.net>2008-01-05 04:03:33 +0000
commitb859c9dd4bf431a799faa8e24b364b3cfe2ce9d9 (patch)
treeae8bd515fcf78bb00def7d006e0df2f21d32ef5a /ext/phar/tests/frontcontroller6.phpt
parent2fd9f17353f0ab0939ec7b9a5ace93a92e0806ac (diff)
downloadphp-git-b859c9dd4bf431a799faa8e24b364b3cfe2ce9d9.tar.gz
beautify 404 error handler, and note missing file.
throw exception if webPhar() is attempted with an extracted file, as webPhar() makes no sense on-disk
Diffstat (limited to 'ext/phar/tests/frontcontroller6.phpt')
-rw-r--r--ext/phar/tests/frontcontroller6.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/phar/tests/frontcontroller6.phpt b/ext/phar/tests/frontcontroller6.phpt
new file mode 100644
index 0000000000..2f74c8f04d
--- /dev/null
+++ b/ext/phar/tests/frontcontroller6.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Phar front controller 404
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--ENV--
+SCRIPT_NAME=/frontcontroller6.php/notfound.php
+REQUEST_URI=/frontcontroller6.php/notfound.php
+--FILE_EXTERNAL--
+frontcontroller.phar
+--EXPECTHEADERS--
+Status: 404 Not Found
+--EXPECT--
+<html>
+ <head>
+ <title>File Not Found<title>
+ </head>
+ <body>
+ <h1>404 - File /notfound.php Not Found</h1>
+ </body>
+</html> \ No newline at end of file