mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
16 lines
370 B
PHP
16 lines
370 B
PHP
--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
|