original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Add a mock object.
  
  Use "Help" for consistency with getHelpMock.
  
  @param $key
  @param \PHPUnit_Framework_MockObject_MockObject $mock
  
  @return $this
docstring_tokens: Add a mock object .