summaryrefslogtreecommitdiff
path: root/ext/phar/tests/frontcontroller3.phpt
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-01-05 03:41:43 +0000
committerGreg Beaver <cellog@php.net>2008-01-05 03:41:43 +0000
commit653dc9e8cec8c6aeed481a0271cd4cb4819cbc63 (patch)
tree7dadfae37a227bfaa2e62241c9ffa904a2334878 /ext/phar/tests/frontcontroller3.phpt
parent4c7c6d1ef470d252583a13ff0753d84c2e052794 (diff)
downloadphp-git-653dc9e8cec8c6aeed481a0271cd4cb4819cbc63.tar.gz
fix front controller tests (requires patch to run-tests.php posted to internals a little while ago)
allow phars to have extension .php as last resort fix phar-based phars for MIME_OTHER type
Diffstat (limited to 'ext/phar/tests/frontcontroller3.phpt')
-rw-r--r--ext/phar/tests/frontcontroller3.phpt29
1 files changed, 5 insertions, 24 deletions
diff --git a/ext/phar/tests/frontcontroller3.phpt b/ext/phar/tests/frontcontroller3.phpt
index 99bba11660..932dd0d8c0 100644
--- a/ext/phar/tests/frontcontroller3.phpt
+++ b/ext/phar/tests/frontcontroller3.phpt
@@ -2,30 +2,11 @@
Phar front controller phps
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
---INI--
-phar.require_hash=0
-phar.readonly=0
---FILE--
-<?php
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
-$pname = 'phar://' . $fname;
-
-$a = new Phar($fname);
-$a['a.phps'] = '<?php function hio(){}';
-$a->setStub('<?php
-Phar::webPhar();
-__HALT_COMPILER();');
-
-$_SERVER['REQUEST_URI'] = '/' . basename(__FILE__, '.php') . '.phar.php/a.phps';
-include $fname;
-?>
-===DONE===
---CLEAN--
-<?php
-unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
-unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phartmp.php');
-__HALT_COMPILER();
-?>
+--ENV--
+SCRIPT_NAME=/frontcontroller3.php/a.phps
+REQUEST_URI=/frontcontroller3.php/a.phps
+--FILE_EXTERNAL--
+frontcontroller.phar
--EXPECTHEADERS--
Content-type: text/html
--EXPECT--