summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_offsetSet_invalid_parameter.phpt
blob: 2447e798a1ed7683e228ac98896e8b686065fea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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