diff options
Diffstat (limited to 'ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt')
-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 0000000..1953643 --- /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 |