public function testHasRemote()
{
$this->createRemote();
$git = $this->getWorkingCopy();
// The remote should be absent before it is added.
$this->assertFalse($git->hasRemote('remote'));
$git->addRemote('remote', 'file://' . realpath(self::REMOTE_REPO_DIR));
// The remote should be present after it is added.
$this->assertTrue($git->hasRemote('remote'));
}