summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFixedArray_offsetExists_invalid_parameter.phpt
blob: 76ee2f58adf71ff74b95e21cc884665fd79eb0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
SPL FixedArray offsetExists throws error only one parameter
--CREDITS--
PHPNW TestFest 2009 - Ben Longden
--FILE--
<?php
$array = new SplFixedArray(5);
$a = $array->offsetExists();
if(is_null($a)) {
	echo 'PASS';
}
?>
--EXPECTF--
Warning: SplFixedArray::offsetExists() expects exactly 1 parameter, 0 given in %s on line %d
PASS