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