mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02: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 changed files with 10 additions and 0 deletions
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)
|
Loading…
Add table
Add a link
Reference in a new issue