Annotation of embedaddon/php/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SplDoublyLinkedList offsetSet throws error on no parameters
3: --CREDITS--
4: PHPNW TestFest 2009 - Ben Longden
5: --FILE--
6: <?php
7: $list = new SplDoublyLinkedList();
8: $a = $list->offsetSet();
9: if(is_null($a)) {
10: echo 'PASS';
11: }
12: ?>
13: --EXPECTF--
14: Warning: SplDoublyLinkedList::offsetSet() expects exactly 2 parameters, 0 given in %s on line %d
15: PASS
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>