diff --git a/ext/phar/tests/phar_dir_iterate.phpt b/ext/phar/tests/phar_dir_iterate.phpt new file mode 100644 index 00000000000..a0a283a862b --- /dev/null +++ b/ext/phar/tests/phar_dir_iterate.phpt @@ -0,0 +1,31 @@ +--TEST-- +Phar object: iterate test with sub-directories and RecursiveIteratorIterator +--SKIPIF-- + + +--INI-- +phar.readonly=0 +phar.require_hash=0 +--FILE-- + $obj) { + var_dump($obj->getPathName()); +} +?> +===DONE=== +--CLEAN-- + +--EXPECTF-- +string(%d) "phar://%stest.phar/another.file.txt" +string(%d) "phar://%stest.phar/sub/top.txt" +string(%d) "phar://%stest.phar/top.txt" +===DONE===