php-src/ext/spl/tests/recursive_tree_iterator_003.phpt
Marcus Boerger 1223c085b0 - Move RecursiveTreeIterator from PHP to C code (Arnaud, Marcus)
[DOC] Added RecursiveTreeIterator
      Documentation in ext/spl/internal/recursivetreeiterator.inc
2008-07-19 15:43:35 +00:00

17 lines
324 B
PHP
Executable File

--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===