mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
17 lines
324 B
Plaintext
17 lines
324 B
Plaintext
|
--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===
|