php-8.0.30-src/ext/spl/tests/arrayObject_offsetExists_nu...

11 lines
211 B
PHP

--TEST--
SPL: ArrayObject::offsetExists() should return true for element containing NULL
--FILE--
<?php
$ao = new ArrayObject(array('foo' => null));
var_dump($ao->offsetExists('foo'));
?>
--EXPECT--
bool(true)