Annotation of embedaddon/php/ext/spl/tests/splDoublyLinkedList_shift_noParams.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Checks that the shift() method of DoublyLinkedList does not accept args.
3: --CREDITS--
4: PHPNW Test Fest 2009 - Rick Ogden
5: --FILE--
6: <?php
7: $ll = new SplDoublyLinkedList();
8: $ll->push(1);
9: $ll->push(2);
10:
11: var_dump($ll->shift(1));
12: ?>
13: --EXPECTF--
14: Warning: SplDoublyLinkedList::shift() expects exactly 0 parameters, 1 given in %s on line %d
15: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>