xref: /PHP-7.2/ext/spl/tests/dllist_007.phpt (revision 3a4eb3e4)
1--TEST--
2SPL: DoublyLinkedList: Iterator
3--FILE--
4<?php
5$a = new SplDoublyLinkedList();
6$a->push(1);
7$a->push(2);
8$a->push(3);
9
10$a->rewind();
11while ($a->valid()) {
12    var_dump($a->current(), $a->next());
13}
14?>
15===DONE===
16<?php exit(0); ?>
17--EXPECTF--
18int(1)
19NULL
20int(2)
21NULL
22int(3)
23NULL
24===DONE===
25