protected function addHelpMock($key, \PHPUnit_Framework_MockObject_MockObject $mock)
    {
        if (isset($this->helpMocks[$key])) {
            throw new \LogicException('The help mock you are trying to add is already set.');
        }

        $this->helpMocks[$key] = $mock;

        return $this;
    }
protected function addHelpMock($key, \PHPUnit_Framework_MockObject_MockObject $mock)
    {
        if (isset($this->helpMocks[$key])) {
            throw new \LogicException('The help mock you are trying to add is already set.');
        }

        $this->helpMocks[$key] = $mock;

        return $this;
    }
protected function addHelpMock ( $ key , \ PHPUnit_Framework_MockObject_MockObject $ mock ) { if ( isset ( $ this -> helpMocks [ $ key ] ) ) { throw new \ LogicException ( 'The help mock you are trying to add is already set.' ) ; } $ this -> helpMocks [ $ key ] = $ mock ; return $ this ; }
Add a mock object.

Use "Help" for consistency with getHelpMock.

@param $key
@param \PHPUnit_Framework_MockObject_MockObject $mock

@return $this
Add a mock object .