mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
16 lines
317 B
PHP
16 lines
317 B
PHP
--TEST--
|
|
SPL: CachingIterator::__construct(void)
|
|
--CREDITS--
|
|
Sebastian Schürmann
|
|
--FILE--
|
|
<?php
|
|
class myCachingIterator extends CachingIterator {}
|
|
try {
|
|
$it = new myCachingIterator();
|
|
} catch (InvalidArgumentException $e) {
|
|
echo 'InvalidArgumentException thrown';
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
InvalidArgumentException thrown
|