📄 Viewing: array_016.phpt

--TEST--
SPL: ArrayIterator/Object and IteratorIterator
--FILE--
<?php

$it = new ArrayIterator(range(0,3));

foreach(new IteratorIterator($it) as $v)
{
	var_dump($v);
}

$it = new ArrayObject(range(0,3));

foreach(new IteratorIterator($it) as $v)
{
	var_dump($v);
}

?>
===DONE===
<?php exit(0); ?>
--EXPECT--
int(0)
int(1)
int(2)
int(3)
int(0)
int(1)
int(2)
int(3)
===DONE===

🌑 DarkStealth — WP Plugin Edition

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