mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
17 lines
314 B
PHP
17 lines
314 B
PHP
--TEST--
|
|
SPL: AppendIterator::__construct(void)
|
|
--CREDITS--
|
|
Sebastian Schürmann
|
|
--FILE--
|
|
<?php
|
|
class myAppendIterator extends AppendIterator {}
|
|
try {
|
|
$it = new myAppendIterator();
|
|
echo "no exception";
|
|
} catch (InvalidArgumentException $e) {
|
|
echo 'InvalidArgumentException thrown';
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
no exception
|