php-src/ext/spl/examples/tests/iterators_001.phpt
2004-04-28 20:10:21 +00:00

21 lines
275 B
PHP
Executable File

--TEST--
SPL: EmptyIterator
--FILE--
<?php
require_once('examples.inc');
echo "===EmptyIterator===\n";
foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val)
{
echo "$key=>$val\n";
}
?>
===DONE===
<?php exit(0);
--EXPECTF--
===EmptyIterator===
===DONE===