summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFixedArray_offsetExists_less_than_zero.phpt
blob: 9bfda34073182c9f0288f309ae10d0c770abc7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
SPL FixedArray offsetExists behaviour on a negative index
--CREDITS--
PHPNW TestFest 2009 - Ben Longden
--FILE--
<?php
$array = new SplFixedArray(5);
if($array->offsetExists(-10) === false) {
	echo 'PASS';
}
?>
--EXPECT--
PASS