Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added failing test for ArrayObject::offsetExists().

  • Loading branch information...
commit ddac4688e8a4949a1b36cc61bcc1d9cacff918a6 1 parent d0e3289
@conf authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
View
10 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)
Please sign in to comment.
Something went wrong with that request. Please try again.