1
0
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:
Shein Alexey
2012-03-27 19:00:05 +05:00

View 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)