xref: /PHP-7.2/ext/spl/tests/iterator_067.phpt (revision 04f211e3)
1--TEST--
2SPL: AppendIterator::__construct(void)
3--CREDITS--
4Sebastian Schürmann
5--FILE--
6<?php
7class myAppendIterator extends AppendIterator {}
8try {
9	$it = new myAppendIterator();
10	echo "no exception";
11} catch (InvalidArgumentException $e) {
12	echo 'InvalidArgumentException thrown';
13}
14?>
15--EXPECT--
16no exception
17