arrayObject_offsetExists_nullcheck.phpt 211 B

12345678910
  1. --TEST--
  2. SPL: ArrayObject::offsetExists() should return true for element containing NULL
  3. --FILE--
  4. <?php
  5. $ao = new ArrayObject(array('foo' => null));
  6. var_dump($ao->offsetExists('foo'));
  7. ?>
  8. --EXPECT--
  9. bool(true)