php-src/ext/spl/tests/iterator_010.phpt
2005-12-21 22:22:33 +00:00

21 lines
308 B
PHP
Executable File

--TEST--
SPL: EmptyIterator
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
echo "===EmptyIterator===\n";
foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val)
{
echo "$key=>$val\n";
}
?>
===DONE===
<?php exit(0);
--EXPECTF--
===EmptyIterator===
===DONE===