mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
Merge branch 'failed-arrayaccess-test' into PHP-5.3
* failed-arrayaccess-test: Added failing test for ArrayObject::offsetExists().
This commit is contained in:
10
ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
Normal file
10
ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
Normal file
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject::offsetExists() should return true for element containing NULL
|
||||
--FILE--
|
||||
<?php
|
||||
$ao = new ArrayObject(array('foo' => null));
|
||||
var_dump($ao->offsetExists('foo'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
Reference in New Issue
Block a user