Skip to content

Commit ddac468

Browse files
author
Shein Alexey
committed
Added failing test for ArrayObject::offsetExists().
1 parent d0e3289 commit ddac468

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
SPL: ArrayObject::offsetExists() should return true for element containing NULL
3+
--FILE--
4+
<?php
5+
$ao = new ArrayObject(array('foo' => null));
6+
var_dump($ao->offsetExists('foo'));
7+
8+
?>
9+
--EXPECTF--
10+
bool(true)

0 commit comments

Comments
 (0)