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