summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_058.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/iterator_058.phpt')
-rw-r--r--ext/spl/tests/iterator_058.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/spl/tests/iterator_058.phpt b/ext/spl/tests/iterator_058.phpt
new file mode 100644
index 0000000..3f65ecb
--- /dev/null
+++ b/ext/spl/tests/iterator_058.phpt
@@ -0,0 +1,24 @@
+--TEST--
+SPL: Iterator::__construct(void)
+--CREDITS--
+Sebastian Schürmann
+--FILE--
+<?php
+class myIterator implements Iterator {
+
+ function current() {}
+ function next() {}
+ function key() {}
+ function valid() {}
+ function rewind() {}
+
+}
+try {
+ $it = new myIterator();
+} catch (InvalidArgumentException $e) {
+ echo 'InvalidArgumentException thrown';
+}
+echo 'no Exception thrown';
+?>
+--EXPECT--
+no Exception thrown