diff options
author | Shein Alexey <confik@gmail.com> | 2012-03-27 13:15:20 +0500 |
---|---|---|
committer | Shein Alexey <confik@gmail.com> | 2012-03-27 18:59:04 +0500 |
commit | ddac4688e8a4949a1b36cc61bcc1d9cacff918a6 (patch) | |
tree | 722f4dfe4fca002408a7f993dc021bd8c540a262 | |
parent | d0e3289d126739ddfd72409e6ff40e7f98c14f2b (diff) | |
download | php-git-ddac4688e8a4949a1b36cc61bcc1d9cacff918a6.tar.gz |
Added failing test for ArrayObject::offsetExists().
-rw-r--r-- | ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt | 10 |
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 |