summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShein Alexey <confik@gmail.com>2012-03-27 19:00:05 +0500
committerShein Alexey <confik@gmail.com>2012-03-27 19:00:05 +0500
commit8c44c85b0616f4eee6a68eec1e0d906d6b65ac02 (patch)
tree722f4dfe4fca002408a7f993dc021bd8c540a262
parentd0e3289d126739ddfd72409e6ff40e7f98c14f2b (diff)
parentddac4688e8a4949a1b36cc61bcc1d9cacff918a6 (diff)
downloadphp-git-8c44c85b0616f4eee6a68eec1e0d906d6b65ac02.tar.gz
Merge branch 'failed-arrayaccess-test' into PHP-5.3
* failed-arrayaccess-test: 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