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