Example #1
0
 public function testOpenReturnsRepository()
 {
     $path = $this->getMockRepoPath();
     $git = new Git('/usr/bin/git', new Process());
     $repository = $git->open($path);
     $this->assertSame($path, $repository->getPath());
     $this->assertSame($git, $repository->getGit());
 }