mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +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
|