diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index c676263a8..75cbcd058 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -1334,10 +1334,10 @@ EOF; file_put_contents($this->workingDir.'/forks/bar/src/exclude/FooExclClass.php', 'workingDir.'/forks/bar/'; - $link = $this->workingDir.'/composersrc/foo/bar/'; + $link = $this->workingDir.'/composersrc/foo/bar'; $command = Platform::isWindows() - ? 'mklink /j "' . str_replace('/', '\\', $link) . '" "' . str_replace('/', '\\', $target) - : 'ln -s "' . $target . '" "' . $link; + ? 'mklink /j "' . str_replace('/', '\\', $link) . '" "' . str_replace('/', '\\', $target) . '"' + : 'ln -s "' . $target . '" "' . $link . '"'; exec($command); $this->generator->dump($this->config, $this->repository, $package, $this->im, 'composer', true, '_1');