summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplDoublyLinkedList_offsetExists_invalid_parameter.phpt
blob: f0e1b8ba14ec47c7012f85613bc35205ba46519e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
SPL SplDoublyLinkedList offsetExists displays warning and returns null on no parameters
--CREDITS--
PHPNW TestFest 2009 - Ben Longden
--FILE--
<?php
$list = new SplDoublyLinkedList();
$a = $list->offsetExists();
if(is_null($a)) {
	echo 'PASS';
}
?>
--EXPECTF--
Warning: SplDoublyLinkedList::offsetExists() expects exactly 1 parameter, 0 given in %s on line %d
PASS