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