1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix tests, refs #2184

This commit is contained in:
Jordi Boggiano 2013-10-11 20:22:50 -03:00
parent 0fbb4cbd16
commit 2b36106168

View file

@ -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));