Permalink
Browse files

Added failing test for ArrayObject::offsetExists().

  • Loading branch information...
conf committed Mar 27, 2012
1 parent d0e3289 commit ddac4688e8a4949a1b36cc61bcc1d9cacff918a6
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 ddac468

Please sign in to comment.