summaryrefslogtreecommitdiff
path: root/ext/spl/tests/recursive_tree_iterator_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/recursive_tree_iterator_003.phpt')
-rw-r--r--ext/spl/tests/recursive_tree_iterator_003.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/spl/tests/recursive_tree_iterator_003.phpt b/ext/spl/tests/recursive_tree_iterator_003.phpt
new file mode 100644
index 0000000..83c8553
--- /dev/null
+++ b/ext/spl/tests/recursive_tree_iterator_003.phpt
@@ -0,0 +1,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===