summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_058.phpt
blob: 83d9d91feb604f389e0752b17c80235ee4469e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
SPL: Iterator::__construct(void)
--CREDITS--
Sebastian Schürmann
--FILE--
<?php
class myIterator implements Iterator {

	function current() {}
	function next() {}
	function key() {}
	function valid() {}
	function rewind() {}

}
try {
	$it = new myIterator();
} catch (InvalidArgumentException $e) {
	echo 'InvalidArgumentException thrown';
}
echo 'no Exception thrown';
?>
--EXPECT--
no Exception thrown