php-src/ext/spl/tests/bug28822.phpt
2012-10-10 10:27:49 +08:00

17 lines
284 B
PHP

--TEST--
Bug #28822 (ArrayObject::offsetExists() works inverted)
--FILE--
<?php
$array = new ArrayObject();
$array->offsetSet('key', 'value');
var_dump($array->offsetExists('key'));
var_dump($array->offsetExists('nokey'));
?>
===DONE===
--EXPECT--
bool(true)
bool(false)
===DONE===