function it_matches_ArrayObject_without_specified_offset(ArrayObject $array) { $array->offsetExists('abc')->willReturn(false); $this->shouldNotThrow()->duringNegativeMatch('haveKey', $array, array('abc')); }