public function testAddRemote($options, $asserts)
{
$this->createRemote();
$git = $this->getWorkingCopy();
$git->addRemote('remote', 'file://' . realpath(self::REMOTE_REPO_DIR), $options);
$this->assertTrue($git->hasRemote('remote'));
foreach ($asserts as $method => $parameters) {
array_unshift($parameters, $git);
call_user_func_array(array($this, $method), $parameters);
}
}