Annotation of embedaddon/php/ext/spl/tests/dllist_007.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: 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();
! 11: while ($a->valid()) {
! 12: var_dump($a->current(), $a->next());
! 13: }
! 14: ?>
! 15: ===DONE===
! 16: <?php exit(0); ?>
! 17: --EXPECTF--
! 18: int(1)
! 19: NULL
! 20: int(2)
! 21: NULL
! 22: int(3)
! 23: NULL
! 24: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>