xref: /PHP-8.0/ext/spl/tests/iterator_010.phpt (revision f8d79582)
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--EXPECT--
15===EmptyIterator===
16