function it_matches_ArrayObject_with_provided_offset(ArrayObject $array) { $array->offsetExists('abc')->willReturn(true); $this->shouldNotThrow()->duringPositiveMatch('haveKey', $array, array('abc')); }