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

1.1       misho       1: --TEST--
                      2: Tests that the offsetGet() method throws an error when no argument is sent
                      3: --CREDITS--
                      4: PHPNW Test Fest 2009 - Rick Ogden
                      5: --FILE--
                      6: <?php
                      7: $dll = new SplDoublyLinkedList();
                      8: $dll->push(1);
                      9: $dll->push(2);
                     10: 
                     11: var_dump($dll->offsetGet());
                     12: ?>
                     13: --EXPECTF--
                     14: Warning: SplDoublyLinkedList::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
                     15: NULL

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