From 753caf2b557de842341278f4de7aa7443d9fa610 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 25 Sep 2011 23:14:12 +0200 Subject: [PATCH] Fix tests on windows --- tests/Composer/Test/Installer/LibraryInstallerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Installer/LibraryInstallerTest.php b/tests/Composer/Test/Installer/LibraryInstallerTest.php index c5be9cbb6..1255a70c9 100644 --- a/tests/Composer/Test/Installer/LibraryInstallerTest.php +++ b/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())