summaryrefslogtreecommitdiff
path: root/ext/spl/examples/tests/iterators_001.phpt
blob: 5b4a6ffd0f42c7e9a43a263ea21357de4013dbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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===