/**
* @runInSeparateProcess
*/
public function testThrowExceptionForNonGitDir()
{
chdir(sys_get_temp_dir());
$this->setExpectedExceptionRegExp('\\RuntimeException', '#^fatal: Not a git repository \\(or any of the parent directories\\): \\.git$#', 128);
$this->assertFalse($this->git->isGitDir());
}