예제 #1
0
 public function testGetAndSetRepositoryClassWithInvalidClassThrowsException()
 {
     $class = '\\PhpGit\\Repository\\Custom';
     $git = new Git('/usr/bin/git', new Process());
     $this->assertSame('\\PhpGit\\Repository', $git->getRepositoryClass());
     $this->setExpectedException('\\PhpGit\\Exception\\RuntimeException');
     $this->assertSame($git, $git->setRepositoryClass($class));
 }