php-src/ext/spl/tests/recursive_tree_iterator_003.phpt

17 lines
324 B
Plaintext
Raw Normal View History

--TEST--
SPL: RecursiveTreeIterator(non-traversable)
--INI--
error_reporting=E_ALL&~E_NOTICE
--FILE--
<?php
try {
new RecursiveTreeIterator(new ArrayIterator(array()));
} catch (InvalidArgumentException $e) {
echo "InvalidArgumentException thrown\n";
}
?>
===DONE===
--EXPECTF--
InvalidArgumentException thrown
===DONE===