π Viewing: iterator_058.phpt
--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
π DarkStealth β WP Plugin Edition
Directory: /usr/src/php-7.4.23/ext/spl/tests