protected function getHelpMock($key)
    {
        if (!isset($this->helpMocks[$key])) {
            throw new \InvalidArgumentException(sprintf('The required mock object "%s" doesn\'t exist.', $key));
        }

        return $this->helpMocks[$key];
    }
protected function getHelpMock($key)
    {
        if (!isset($this->helpMocks[$key])) {
            throw new \InvalidArgumentException(sprintf('The required mock object "%s" doesn\'t exist.', $key));
        }

        return $this->helpMocks[$key];
    }
protected function getHelpMock ( $ key ) { if ( ! isset ( $ this -> helpMocks [ $ key ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The required mock object "%s" doesn\'t exist.' , $ key ) ) ; } return $ this -> helpMocks [ $ key ] ; }
Get a mock object.

@param $key

@return \PHPUnit_Framework_MockObject_MockObject
Get a mock object .