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