From 3a66d1b9bbc1be1162c6ea33c201a4556d0a4f8c Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Sat, 27 Feb 2016 23:42:55 +0100 Subject: [PATCH] Fixed unit test explicitly depending on erroneous method invocation. --- tests/Composer/Test/Downloader/PerforceDownloaderTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/PerforceDownloaderTest.php b/tests/Composer/Test/Downloader/PerforceDownloaderTest.php index 2b8105e65..627db80e7 100644 --- a/tests/Composer/Test/Downloader/PerforceDownloaderTest.php +++ b/tests/Composer/Test/Downloader/PerforceDownloaderTest.php @@ -25,6 +25,7 @@ use Composer\Util\Filesystem; class PerforceDownloaderTest extends TestCase { protected $config; + /** @var PerforceDownloader */ protected $downloader; protected $io; protected $package; @@ -130,7 +131,7 @@ class PerforceDownloaderTest extends TestCase $perforce = $this->getMockBuilder('Composer\Util\Perforce', $perforceMethods)->disableOriginalConstructor()->getMock(); $perforce->expects($this->at(0))->method('initializePath')->with($this->equalTo($this->testPath)); $perforce->expects($this->at(1))->method('setStream')->with($this->equalTo($ref)); - $perforce->expects($this->at(2))->method('p4Login')->with($this->identicalTo($this->io)); + $perforce->expects($this->at(2))->method('p4Login'); $perforce->expects($this->at(3))->method('writeP4ClientSpec'); $perforce->expects($this->at(4))->method('connectClient'); $perforce->expects($this->at(5))->method('syncCodeBase')->with($label); @@ -153,7 +154,7 @@ class PerforceDownloaderTest extends TestCase $perforce = $this->getMockBuilder('Composer\Util\Perforce', $perforceMethods)->disableOriginalConstructor()->getMock(); $perforce->expects($this->at(0))->method('initializePath')->with($this->equalTo($this->testPath)); $perforce->expects($this->at(1))->method('setStream')->with($this->equalTo($ref)); - $perforce->expects($this->at(2))->method('p4Login')->with($this->identicalTo($this->io)); + $perforce->expects($this->at(2))->method('p4Login'); $perforce->expects($this->at(3))->method('writeP4ClientSpec'); $perforce->expects($this->at(4))->method('connectClient'); $perforce->expects($this->at(5))->method('syncCodeBase')->with($label);