summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_058.phpt
blob: ebe7a1ed2c16b855d7a1a723fba23ea3e5cb040e (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