From 38fc1fbc355f788e433a9dfcd74e5fa26fb52c21 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 25 Nov 2007 05:15:50 +0000 Subject: [PATCH] new test for dir iteration (covers some code missing in gcov tests) --- ext/phar/tests/phar_dir_iterate.phpt | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ext/phar/tests/phar_dir_iterate.phpt diff --git a/ext/phar/tests/phar_dir_iterate.phpt b/ext/phar/tests/phar_dir_iterate.phpt new file mode 100644 index 0000000000..a0a283a862 --- /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=== -- 2.50.1