blob: 342a6b8bb24a556277955d843669ad31dcf5daaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Check that SplStack can't be set to FIFO
--CREDITS--
Rob Knight <themanhimself@robknight.org.uk> PHPNW Test Fest 2009
--FILE--
<?php
$stack = new SplStack();
try {
$stack->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO);
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
|