|
@@ -129,7 +129,7 @@ class PerforceDownloaderTest extends TestCase
|
|
$this->package->expects($this->once())->method('getSourceReference')->will($this->returnValue($ref));
|
|
$this->package->expects($this->once())->method('getSourceReference')->will($this->returnValue($ref));
|
|
$this->io->expects($this->once())->method('writeError')->with($this->stringContains('Cloning '.$ref));
|
|
$this->io->expects($this->once())->method('writeError')->with($this->stringContains('Cloning '.$ref));
|
|
$perforceMethods = array('setStream', 'p4Login', 'writeP4ClientSpec', 'connectClient', 'syncCodeBase', 'cleanupClientSpec');
|
|
$perforceMethods = array('setStream', 'p4Login', 'writeP4ClientSpec', 'connectClient', 'syncCodeBase', 'cleanupClientSpec');
|
|
- $perforce = $this->getMockBuilder('Composer\Util\Perforce', $perforceMethods)->disableOriginalConstructor()->getMock();
|
|
|
|
|
|
+ $perforce = $this->getMockBuilder('Composer\Util\Perforce')->disableOriginalConstructor()->getMock();
|
|
$perforce->expects($this->at(0))->method('initializePath')->with($this->equalTo($this->testPath));
|
|
$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(1))->method('setStream')->with($this->equalTo($ref));
|
|
$perforce->expects($this->at(2))->method('p4Login');
|
|
$perforce->expects($this->at(2))->method('p4Login');
|
|
@@ -152,7 +152,7 @@ class PerforceDownloaderTest extends TestCase
|
|
$this->package->expects($this->once())->method('getSourceReference')->will($this->returnValue($ref));
|
|
$this->package->expects($this->once())->method('getSourceReference')->will($this->returnValue($ref));
|
|
$this->io->expects($this->once())->method('writeError')->with($this->stringContains('Cloning '.$ref));
|
|
$this->io->expects($this->once())->method('writeError')->with($this->stringContains('Cloning '.$ref));
|
|
$perforceMethods = array('setStream', 'p4Login', 'writeP4ClientSpec', 'connectClient', 'syncCodeBase', 'cleanupClientSpec');
|
|
$perforceMethods = array('setStream', 'p4Login', 'writeP4ClientSpec', 'connectClient', 'syncCodeBase', 'cleanupClientSpec');
|
|
- $perforce = $this->getMockBuilder('Composer\Util\Perforce', $perforceMethods)->disableOriginalConstructor()->getMock();
|
|
|
|
|
|
+ $perforce = $this->getMockBuilder('Composer\Util\Perforce')->disableOriginalConstructor()->getMock();
|
|
$perforce->expects($this->at(0))->method('initializePath')->with($this->equalTo($this->testPath));
|
|
$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(1))->method('setStream')->with($this->equalTo($ref));
|
|
$perforce->expects($this->at(2))->method('p4Login');
|
|
$perforce->expects($this->at(2))->method('p4Login');
|