/** * {@inheritdoc} */ public function offsetGet($offset) { return $this->inner->offsetGet($offset); }
/** * {@inheritDoc} */ public function offsetGet($offset) { $this->initialize(); return $this->collection->offsetGet($offset); }
function it_returns_null_when_getting_for_a_key_with_type_other_than_specified(Collection $internal) { $internal->get(Argument::any())->shouldNotBeCalled(); $internal->offsetGet(Argument::any())->shouldNotBeCalled(); $this->get('4')->shouldBe(null); $this->offsetGet('4')->shouldBe(null); }