php-src/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt
2009-05-23 15:38:18 +00:00

16 lines
341 B
PHP

--TEST--
SplDoublyLinkedList offsetSet throws error on no parameters
--CREDITS--
PHPNW TestFest 2009 - Ben Longden
--FILE--
<?php
$list = new SplDoublyLinkedList();
$a = $list->offsetSet();
if(is_null($a)) {
echo 'PASS';
}
?>
--EXPECTF--
Warning: SplDoublyLinkedList::offsetSet() expects exactly 2 parameters, 0 given in %s on line %d
PASS