xref: /PHP-5.6/ext/spl/tests/iterator_017.phpt (revision 610c7fbe)
1--TEST--
2SPL: EmptyIterator
3--FILE--
4<?php
5
6echo "===EmptyIterator===\n";
7
8foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val)
9{
10	echo "$key=>$val\n";
11}
12
13?>
14===DONE===
15<?php exit(0);
16--EXPECTF--
17===EmptyIterator===
18===DONE===
19