1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/splfixedarray_offsetExists_larger.phpt
2009-08-28 14:31:19 +00:00

16 lines
268 B
PHP

--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)