mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
20 lines
340 B
PHP
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
|