1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/spl/tests/iterator_058.phpt
2020-02-03 22:52:20 +01:00

25 lines
435 B
PHP

--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