Ver Fonte

Fix test on windows

Jordi Boggiano há 10 anos atrás
pai
commit
46d8e50bf3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tests/Composer/Test/InstallerTest.php

+ 1 - 1
tests/Composer/Test/InstallerTest.php

@@ -292,7 +292,7 @@ class InstallerTest extends TestCase
 
                             // Change paths like file://foobar to file:///path/to/fixtures
                             if (preg_match('{^file://[^/]}', $repo['url'])) {
-                                $repo['url'] = "file://${fixturesDir}/" . substr($repo['url'], 7);
+                                $repo['url'] = 'file://' . strtr($fixturesDir, '\\', '/') . '/' . substr($repo['url'], 7);
                             }
 
                             unset($repo);