Permalink
Browse files

Merge branch 'failed-arrayaccess-test' into PHP-5.3

* failed-arrayaccess-test:
  Added failing test for ArrayObject::offsetExists().
  • Loading branch information...
2 parents d0e3289 + ddac468 commit 8c44c85b0616f4eee6a68eec1e0d906d6b65ac02 @conf conf committed Mar 27, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
@@ -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)

0 comments on commit 8c44c85

Please sign in to comment.