summaryrefslogtreecommitdiff
path: root/ext/spl/tests/dllist_007.phpt
blob: d15e064ac4e0d6c3c63b04f6be074ee8a208f698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
SPL: DoublyLinkedList: Iterator
--FILE--
<?php
$a = new SplDoublyLinkedList();
$a->push(1);
$a->push(2);
$a->push(3);

$a->rewind();
while ($a->valid()) {
    var_dump($a->current(), $a->next());
}
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
int(1)
NULL
int(2)
NULL
int(3)
NULL
===DONE===