diff options
Diffstat (limited to 'ext/spl/tests/iterator_060.phpt')
| -rw-r--r-- | ext/spl/tests/iterator_060.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/spl/tests/iterator_060.phpt b/ext/spl/tests/iterator_060.phpt new file mode 100644 index 0000000..0c3b6c2 --- /dev/null +++ b/ext/spl/tests/iterator_060.phpt @@ -0,0 +1,17 @@ +--TEST-- +SPL: RecursiveCachingIterator::__construct(void) +--CREDITS-- +Sebastian Schürmann +--FILE-- +<?php +class myRecursiveCachingIterator extends RecursiveCachingIterator { + +} +try { + $it = new myRecursiveCachingIterator(); +} catch (InvalidArgumentException $e) { + echo 'InvalidArgumentException thrown'; +} +?> +--EXPECT-- +InvalidArgumentException thrown |
