PHPSpec2\Mocker\MockExpectation::offsetGet PHP Method

offsetGet() public method

public offsetGet ( $offset )
    public function offsetGet($offset)
    {
        if (!$this->offsetExists($offset)) {
            throw new MockException(sprintf('Expectation with <value>%d</value> offset not found.', $offset));
        }
        $this->expectation = $this->mocker->getExpectation($this->mock, $this->method, $this->arguments, $offset);
        return $this;
    }