πŸ“„ Viewing: iterator_057.phpt

--TEST--
SPL: ArrayIterator::__construct(void)
--CREDITS--
Sebastian SchΓΌrmann
--FILE--
<?php
/**
 * From Docs: Construct a new array iterator from anything that has a hash table.
 * NULL, NOTHING is not a hash table ;)
 */
class myArrayIterator extends ArrayIterator {
}
try {
	$it = new myArrayIterator();
} catch (InvalidArgumentException $e) {
	echo 'InvalidArgumentException thrown';
}
echo 'no Exception thrown'
?>
--EXPECT--
no Exception thrown

πŸŒ‘ DarkStealth β€” WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/spl/tests