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