summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShein Alexey <confik@gmail.com>2012-03-27 13:15:20 +0500
committerShein Alexey <confik@gmail.com>2012-03-27 18:59:04 +0500
commitddac4688e8a4949a1b36cc61bcc1d9cacff918a6 (patch)
tree722f4dfe4fca002408a7f993dc021bd8c540a262
parentd0e3289d126739ddfd72409e6ff40e7f98c14f2b (diff)
downloadphp-git-ddac4688e8a4949a1b36cc61bcc1d9cacff918a6.tar.gz
Added failing test for ArrayObject::offsetExists().
-rw-r--r--ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt b/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
new file mode 100644
index 0000000000..1953643c84
--- /dev/null
+++ b/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) \ No newline at end of file