Annotation of embedaddon/php/ext/spl/tests/SplQueue_setIteratorMode_param_lifo.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SplQueue setIteratorMode to LIFO produces fail condition in try/catch
! 3: --CREDITS--
! 4: PHPNW Test Fest 2009 - Jeremy Coates jeremy@phpnw.org.uk
! 5: --FILE--
! 6: <?php
! 7:
! 8: try {
! 9:
! 10: $dll = new SplQueue();
! 11: $dll->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
! 12:
! 13: } catch (Exception $e) {
! 14: echo $e->getMessage();
! 15: }
! 16:
! 17: ?>
! 18: --EXPECT--
! 19: Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>