Jordi Boggiano hace 13 años
padre
commit
6aaa523c0d

+ 2 - 1
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');

+ 2 - 1
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');