/**
* @test
*/
public function mergeDriverIsNotAddedWhenPresent()
{
$gitattributesContents = file_get_contents(__DIR__ . '/../../src/Initialization/.gitattributes.tpl');
$gitConfigContents = "[merge \"vp-ini\"]";
$gitattributesVariables = ['vpdb-dir' => self::$repositoryDir];
$gitattributesContents = StringUtils::fillTemplateString($gitattributesVariables, $gitattributesContents);
file_put_contents(self::$repositoryDir . "/.gitattributes", $gitattributesContents);
file_put_contents(self::$repositoryDir . "/.git/config", $gitConfigContents);
$this->installMergeDriver('auto');
$this->assertEquals($gitConfigContents, file_get_contents(self::$repositoryDir . "/.git/config"));
$this->assertEquals($gitattributesContents, file_get_contents(self::$repositoryDir . "/.gitattributes"));
}