php-src/ext/spl/tests/iterator_063.phpt

18 lines
310 B
PHP

--TEST--
SPL: LimitIterator::__construct(void)
--CREDITS--
Sebastian Schürmann
--FILE--
<?php
class myLimitIterator extends LimitIterator {
}
try {
$it = new myLimitIterator();
} catch (InvalidArgumentException $e) {
echo 'InvalidArgumentException thrown';
}
?>
--EXPECT--
InvalidArgumentException thrown