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