From 6aaa523c0d4052034fafb956460c3c76f021c9a7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 5 Apr 2012 23:03:02 +0200 Subject: [PATCH] Fix tests --- tests/Composer/Test/Downloader/GitDownloaderTest.php | 3 ++- tests/Composer/Test/Downloader/HgDownloaderTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/GitDownloaderTest.php b/tests/Composer/Test/Downloader/GitDownloaderTest.php index 5dd6e451a..c7fb4d659 100644 --- a/tests/Composer/Test/Downloader/GitDownloaderTest.php +++ b/tests/Composer/Test/Downloader/GitDownloaderTest.php @@ -205,7 +205,8 @@ class GitDownloaderTest extends \PHPUnit_Framework_TestCase $filesystem = $this->getMock('Composer\Util\Filesystem'); $filesystem->expects($this->any()) ->method('removeDirectory') - ->with($this->equalTo('composerPath')); + ->with($this->equalTo('composerPath')) + ->will($this->returnValue(true)); $downloader = $this->getDownloaderMock(null, $processExecutor, $filesystem); $downloader->remove($packageMock, 'composerPath'); diff --git a/tests/Composer/Test/Downloader/HgDownloaderTest.php b/tests/Composer/Test/Downloader/HgDownloaderTest.php index 435d7a8dc..ad4f4fd9d 100644 --- a/tests/Composer/Test/Downloader/HgDownloaderTest.php +++ b/tests/Composer/Test/Downloader/HgDownloaderTest.php @@ -111,7 +111,8 @@ class HgDownloaderTest extends \PHPUnit_Framework_TestCase $filesystem = $this->getMock('Composer\Util\Filesystem'); $filesystem->expects($this->any()) ->method('removeDirectory') - ->with($this->equalTo('composerPath')); + ->with($this->equalTo('composerPath')) + ->will($this->returnValue(true)); $downloader = $this->getDownloaderMock(null, $processExecutor, $filesystem); $downloader->remove($packageMock, 'composerPath');