public function testGitTag() { touch('test'); exec('git init'); exec('git config user.name "Test User"'); exec('git config user.email test@test.test'); exec('git add test'); exec('git commit -m "Adding test file."'); exec('git tag 1.0.0'); $this->assertEquals('1.0.0', $this->config->getGitTag()); // some process does not release the git files if ($this->isWindows()) { exec('rd /S /Q .git'); } }