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