Exemplo n.º 1
0
 /**
  * Collect git repository info into json_file.
  *
  * @return \Contrib\Bundle\CoverallsV1Bundle\Api\Jobs
  */
 public function collectGitInfo()
 {
     $command = new GitCommand();
     $gitCollector = new GitInfoCollector($command);
     $this->jsonFile->setGit($gitCollector->collect());
     return $this;
 }
 /**
  * @test
  * @expectedException RuntimeException
  */
 public function throwRuntimeExceptionIfRemoteIsInvalid()
 {
     $getRemotesValue = array();
     $gitCommand = $this->createGitCommandStubWith($this->getBranchesValue, $this->getHeadCommitValue, $getRemotesValue);
     $object = new GitInfoCollector($gitCommand);
     $object->collect();
 }