original_string: protected function generateMocksCollection(\PHPUnit_Framework_MockObject_MockObject $mock, $repeatFor = 1)
      {
          $collection = [];
  
          for ($i = 1; $i <= $repeatFor; $i++) {
              $collection[] = clone $mock;
          }
  
          return $collection;
      }
code: protected function generateMocksCollection(\PHPUnit_Framework_MockObject_MockObject $mock, $repeatFor = 1)
      {
          $collection = [];
  
          for ($i = 1; $i <= $repeatFor; $i++) {
              $collection[] = clone $mock;
          }
  
          return $collection;
      }
code_tokens: protected function generateMocksCollection ( \ PHPUnit_Framework_MockObject_MockObject $ mock , $ repeatFor = 1 ) { $ collection = [ ] ; for ( $ i = 1 ; $ i <= $ repeatFor ; $ i ++ ) { $ collection [ ] = clone $ mock ; } return $ collection ; }
docstring: Clone a mock object generating a collection populated with mocks of the same kind.
  
  @param \PHPUnit_Framework_MockObject_MockObject $mock
  @param int                                      $repeatFor
  
  @return array
docstring_tokens: Clone a mock object generating a collection populated with mocks of the same kind .