mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
Merge branch 'failed-arrayaccess-test' into PHP-5.3
* failed-arrayaccess-test: Added failing test for ArrayObject::offsetExists().
This commit is contained in:
commit
8c44c85b06
1 file changed
+10
@@ -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