1
0
Fork 0

Fix test on windows

pull/2581/merge
Jordi Boggiano 2014-12-07 14:02:17 +00:00
parent fc3c7838b2
commit 46d8e50bf3
1 changed files with 1 additions and 1 deletions

View File

@ -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);