1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Re-use mirror code from the git driver, refs #5384

This commit is contained in:
Jordi Boggiano 2016-07-02 17:20:25 +01:00
parent 55e90093a4
commit 4998ee27b3
4 changed files with 50 additions and 37 deletions

View file

@ -36,6 +36,11 @@ class GitDownloaderTest extends TestCase
if (is_dir($this->workingDir)) {
$this->fs->removeDirectory($this->workingDir);
}
// reset the static version cache
$refl = new \ReflectionProperty('Composer\Util\Git', 'version');
$refl->setAccessible(true);
$refl->setValue(null, null);
}
protected function setupConfig($config = null) {