Explorar o código

Fix tests on windows

Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
753caf2b55
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tests/Composer/Test/Installer/LibraryInstallerTest.php

+ 3 - 3
tests/Composer/Test/Installer/LibraryInstallerTest.php

@@ -78,7 +78,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
         $this->dm
             ->expects($this->once())
             ->method('download')
-            ->with($package, $this->dir.'/some/package');
+            ->with($package, $this->dir.DIRECTORY_SEPARATOR.'some/package');
 
         $this->repository
             ->expects($this->once())
@@ -108,7 +108,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
         $this->dm
             ->expects($this->once())
             ->method('update')
-            ->with($initial, $target, $this->dir.'/package1');
+            ->with($initial, $target, $this->dir.DIRECTORY_SEPARATOR.'package1');
 
         $this->repository
             ->expects($this->once())
@@ -146,7 +146,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
         $this->dm
             ->expects($this->once())
             ->method('remove')
-            ->with($package, $this->dir.'/pkg');
+            ->with($package, $this->dir.DIRECTORY_SEPARATOR.'pkg');
 
         $this->repository
             ->expects($this->once())