Annotation of embedaddon/php/ext/spl/tests/SplStack_setIteratorMode.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Check that SplStack can't be set to FIFO
                      3: --CREDITS--
                      4: Rob Knight <themanhimself@robknight.org.uk> PHPNW Test Fest 2009
                      5: --FILE--
                      6: <?php
                      7: $stack = new SplStack();
                      8: try {
                      9:   $stack->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO);
                     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>