diff options
Diffstat (limited to 'ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt')
-rw-r--r-- | ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt b/ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt new file mode 100644 index 0000000..c3071f2 --- /dev/null +++ b/ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt @@ -0,0 +1,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 |