mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
16 lines
370 B
Plaintext
16 lines
370 B
Plaintext
|
--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();
|
||
|
}
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
|