xref: /PHP-5.5/ext/spl/tests/iterator_059.phpt (revision 04f211e3)
1--TEST--
2SPL: CachingIterator::__construct(void)
3--CREDITS--
4Sebastian Schürmann
5--FILE--
6<?php
7class myCachingIterator extends CachingIterator {
8
9}
10try {
11	$it = new myCachingIterator();
12} catch (InvalidArgumentException $e) {
13	echo 'InvalidArgumentException thrown';
14}
15?>
16--EXPECT--
17InvalidArgumentException thrown
18