summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_062.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/iterator_062.phpt')
-rw-r--r--ext/spl/tests/iterator_062.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/spl/tests/iterator_062.phpt b/ext/spl/tests/iterator_062.phpt
new file mode 100644
index 0000000..59a1dfa
--- /dev/null
+++ b/ext/spl/tests/iterator_062.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SPL: RecursiveIteratorIterator::__construct(void)
+--CREDITS--
+Sebastian Schürmann
+--FILE--
+<?php
+class myRecursiveIteratorIterator extends RecursiveIteratorIterator {
+
+}
+
+try {
+ $it = new myRecursiveIteratorIterator();
+} catch (InvalidArgumentException $e) {
+ echo 'InvalidArgumentException thrown';
+}
+?>
+--EXPECT--
+InvalidArgumentException thrown