summaryrefslogtreecommitdiff
path: root/ext/spl/tests/dllist_007.phpt
blob: 2ccadf99ca971aa8e7d97c010b7ad9736f6c24ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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());
}
?>
--EXPECT--
int(1)
NULL
int(2)
NULL
int(3)
NULL