php-src/ext/spl/tests/iterator_067.phpt

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