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(); }