summaryrefslogtreecommitdiff
path: root/ext/spl/tests/recursive_tree_iterator_003.phpt
blob: 83c8553942bf26ef77bbeedbd5f26cf36ce6cec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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===