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

1.1       misho       1: --TEST--
                      2: SPL: SplDoublyLinkedList : offsetUnset - last element
                      3: --CREDITS--
                      4: PHPNW TestFest2009 - Rowan Merewood <rowan@merewood.org>
                      5: --FILE--
                      6: <?php
                      7: $list = new SplDoublyLinkedList();
                      8: $list->push('oh');
                      9: $list->push('hai');
                     10: $list->push('thar');
                     11: $list->offsetUnset(2);
                     12: var_dump($list);
                     13: ?>
                     14: --EXPECTF--
                     15: object(SplDoublyLinkedList)#1 (2) {
                     16:   [%u|b%"flags":%u|b%"SplDoublyLinkedList":private]=>
                     17:   int(0)
                     18:   [%u|b%"dllist":%u|b%"SplDoublyLinkedList":private]=>
                     19:   array(2) {
                     20:     [0]=>
                     21:     %string|unicode%(2) "oh"
                     22:     [1]=>
                     23:     %string|unicode%(3) "hai"
                     24:   }
                     25: }

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