xref: /PHP-5.5/ext/spl/tests/iterator_058.phpt (revision 04f211e3)
1--TEST--
2SPL: Iterator::__construct(void)
3--CREDITS--
4Sebastian Schürmann
5--FILE--
6<?php
7class myIterator implements Iterator {
8
9	function current() {}
10	function next() {}
11	function key() {}
12	function valid() {}
13	function rewind() {}
14
15}
16try {
17	$it = new myIterator();
18} catch (InvalidArgumentException $e) {
19	echo 'InvalidArgumentException thrown';
20}
21echo 'no Exception thrown';
22?>
23--EXPECT--
24no Exception thrown
25