summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_056.phpt
blob: 4b0e75a7d4ff6dc486fb7d8859257c43778c311e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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