xref: /PHP-7.3/ext/spl/tests/bug49723.phpt (revision 782352c5)
1--TEST--
2LimitIterator: do not seek if not needed
3--FILE--
4<?php
5
6$it = new ArrayIterator(array());
7
8$lit = new LimitIterator($it, 0, 5);
9
10foreach ($lit as $v) {
11    echo $v;
12}
13?>
14===DONE===
15--EXPECT--
16===DONE===
17