function it_does_not_match_ArrayObject_without_provided_offset(ArrayObject $array) { $array->offsetExists('abc')->willReturn(false); $this->shouldThrow()->duringPositiveMatch('haveKey', $array, array('abc')); }