Annotation of embedaddon/php/ext/spl/tests/SplDoublyLinkedList_isEmpty_not-empty-with-parameter.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Check that SplDoublyLinkedList->isEmpty() returns an error message when a parameter is passed.
        !             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("test"));
        !            17: ?>
        !            18: --EXPECTF--
        !            19: Warning: SplDoublyLinkedList::isEmpty() expects exactly 0 parameters, %d given in %s
        !            20: NULL

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