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

20 lines
340 B
PHP

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