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