Annotation of embedaddon/php/ext/spl/tests/SplQueue_setIteratorMode.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>