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