From: Greg Beaver Date: Mon, 11 Feb 2008 06:47:26 +0000 (+0000) Subject: new test for special tar-based app and more iteration test X-Git-Tag: RELEASE_2_0_0a1~541 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a6fb65c832e044e9e8df8070214ab50a5e59d0c;p=php new test for special tar-based app and more iteration test --- diff --git a/ext/phar/tests/zf_test.phpt b/ext/phar/tests/zf_test.phpt new file mode 100644 index 0000000000..32511d4cdc --- /dev/null +++ b/ext/phar/tests/zf_test.phpt @@ -0,0 +1,40 @@ +--TEST-- +test broken app +--INI-- +phar.readonly=0 +--FILE-- +startBuffering(); +$a->setStub("stopBuffering(); +foreach(new RecursiveIteratorIterator($a) as $f) { +echo str_replace('\\', '/', $f->getPathName()) . "\n"; +} +?> +===DONE=== +--CLEAN-- + +--EXPECTF-- +phar://%szf_test.phar.php/application/default/controllers/ErrorController.php +phar://%szf_test.phar.php/application/default/controllers/IndexController.php +phar://%szf_test.phar.php/application/default/views/scripts/error/error.phtml +phar://%szf_test.phar.php/application/default/views/scripts/index/index.phtml +phar://%szf_test.phar.php/html/.htaccess +phar://%szf_test.phar.php/html/index.php +===DONE=== diff --git a/ext/phar/tests/zfapp.tgz b/ext/phar/tests/zfapp.tgz new file mode 100644 index 0000000000..fcaec86d65 Binary files /dev/null and b/ext/phar/tests/zfapp.tgz differ