From 2b36106168e89fa185dfa604a1666fd1b188384e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 11 Oct 2013 20:22:50 -0300 Subject: [PATCH] Fix tests, refs #2184 --- tests/Composer/Test/Util/PerforceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Util/PerforceTest.php b/tests/Composer/Test/Util/PerforceTest.php index 5c76df98e..6f72713bb 100644 --- a/tests/Composer/Test/Util/PerforceTest.php +++ b/tests/Composer/Test/Util/PerforceTest.php @@ -584,7 +584,7 @@ class PerforceTest extends \PHPUnit_Framework_TestCase public function testSyncCodeBaseWithoutStream() { $expectedCommand = 'p4 -u user -c composer_perforce_TEST_depot -p port sync -f @label'; - $this->processExecutor->expects($this->at(1)) + $this->processExecutor->expects($this->at(0)) ->method('execute') ->with($this->equalTo($expectedCommand), $this->equalTo(null)) ->will($this->returnValue(0)); @@ -596,7 +596,7 @@ class PerforceTest extends \PHPUnit_Framework_TestCase { $this->setPerforceToStream(); $expectedCommand = 'p4 -u user -c composer_perforce_TEST_depot_branch -p port sync -f @label'; - $this->processExecutor->expects($this->at(1)) + $this->processExecutor->expects($this->at(0)) ->method('execute') ->with($this->equalTo($expectedCommand)) ->will($this->returnValue(0));