/** * @param GitRepository $gitRepository */ protected function changeRepository($gitRepository) { $repositoryDirectory = rtrim($gitRepository->getDirectory(), '/\\') . '/'; $fileName = uniqid('foo', true); touch($repositoryDirectory . $fileName); $this->gitWrapper->execute('add', [], [$fileName], $repositoryDirectory); $this->gitWrapper->execute('commit', ['m'], ['Add ' . $fileName], $repositoryDirectory); }
public function testExecuteVersion() { $this->assertStringStartsWith('git version ', $this->gitWrapper->execute('version')); }