Browse Source

Terminate quoted strings

Jordi Boggiano 6 years ago
parent
commit
78ae0a97f7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

+ 3 - 3
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

@@ -1334,10 +1334,10 @@ EOF;
 
         file_put_contents($this->workingDir.'/forks/bar/src/exclude/FooExclClass.php', '<?php class FooExclClass {};');
         $target = $this->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');