php-src/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

10 lines
No EOL
210 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)