summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt
blob: c3071f2399cb6a092708c1d67d2766ef9b6f9de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
SplQueue setIteratorMode to LIFO produces fail condition in try/catch
--CREDITS--
PHPNW Test Fest 2009 - Jeremy Coates jeremy@phpnw.org.uk
--FILE--
<?php

try {

	$dll = new SplQueue();
	$dll->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);

} catch (Exception $e) {
	echo $e->getMessage();
}

?>
--EXPECT--
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen