Annotation of embedaddon/php/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Check that SplDoublyLinkedList->isEmpty() correctly returns true for a non-empty list.
                      3: --CREDITS--
                      4: PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
                      5: --FILE--
                      6: <?php
                      7:        // Create a new Doubly Linked List
                      8:        $dll = new SplDoublyLinkedList();
                      9:        
                     10:        // Add some items to the list
                     11:        $dll->push(1);
                     12:        $dll->push(2);
                     13:        $dll->push(3);
                     14:        //var_dump($dll);
                     15:        
                     16:        var_dump($dll->isEmpty());
                     17: ?>
                     18: --EXPECT--
                     19: bool(false)

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