1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/spl/tests/recursive_tree_iterator_003.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

13 lines
302 B
PHP

--TEST--
SPL: RecursiveTreeIterator(non-traversable)
--FILE--
<?php
try {
new RecursiveTreeIterator(new ArrayIterator(array()));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
RecursiveCachingIterator::__construct() expects parameter 1 to be RecursiveIterator, object given