Example #1
0
 public function testSetEmptyConfig()
 {
     copy($this->fixturesPath . '/config', $this->fixturesPath . '/tmp/config');
     $driver = new GitDriver();
     $driver->setConfig($this->fixturesPath . '/tmp', 'hooks.showrev', '');
     $config = parse_ini_file($this->fixturesPath . '/tmp/config', true);
     $this->assertEqual($config['hooks']['showrev'], '');
 }
Example #2
0
 public function isGitVersionSuperiorOrEqualThan1_7_4()
 {
     $version = $this->driver->getGitVersion();
     return version_compare($version, '1.7.4', '>=');
 }