summaryrefslogtreecommitdiff
path: root/ext/spl/tests/splfixedarray_offsetExists_larger.phpt
blob: 9449d64d8d29178467b1c0a72e5279b446278d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Checks that offsetExists() does not accept a value larger than the array.
--CREDITS--
 PHPNW Test Fest 2009 - Rick Ogden
--FILE--
<?php
$ar = new SplFixedArray(3);
$ar[0] = 1;
$ar[1] = 2;
$ar[2] = 3;

var_dump($ar->offsetExists(4));
?>
--EXPECT--
bool(false)