Skip to content

Commit f152fec

Browse files
alexdowadnikic
authored andcommitted
Test setting SplDoublyLinkedList iterator mode to IT_MODE_LIFO
1 parent d4d0852 commit f152fec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/spl/tests/SplDoublyLinkedList_getIteratorMode.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ PHPNW Testfest 2009 - Lorna Mitchell
66
<?php
77
$list = new SplDoublyLinkedList();
88
$list->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP);
9-
echo $list->getIteratorMode();
9+
echo $list->getIteratorMode(), "\n";
10+
$list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
11+
echo $list->getIteratorMode(), "\n";
1012
?>
1113
--EXPECT--
1214
0
15+
2

0 commit comments

Comments
 (0)