|
|
@ -79,7 +79,7 @@ class GitDownloaderTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
|
|
|
|
|
|
$processExecutor->expects($this->at(3))
|
|
|
|
$processExecutor->expects($this->at(3))
|
|
|
|
->method('execute')
|
|
|
|
->method('execute')
|
|
|
|
->with($this->equalTo($this->winCompat("git reset --hard '1234567890123456789012345678901234567890'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
|
|
|
|
->with($this->equalTo($this->winCompat("git reset --hard '1234567890123456789012345678901234567890' --")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
|
|
|
|
|
|
|
|
$downloader = $this->getDownloaderMock(null, null, $processExecutor);
|
|
|
|
$downloader = $this->getDownloaderMock(null, null, $processExecutor);
|
|
|
@ -134,7 +134,7 @@ class GitDownloaderTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
|
|
|
|
|
|
$processExecutor->expects($this->at(6))
|
|
|
|
$processExecutor->expects($this->at(6))
|
|
|
|
->method('execute')
|
|
|
|
->method('execute')
|
|
|
|
->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
|
|
|
|
->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref' --")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
|
|
|
|
|
|
|
|
$downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
|
|
|
|
$downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
|
|
|
@ -266,7 +266,7 @@ class GitDownloaderTest extends \PHPUnit_Framework_TestCase
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
$processExecutor->expects($this->at(4))
|
|
|
|
$processExecutor->expects($this->at(4))
|
|
|
|
->method('execute')
|
|
|
|
->method('execute')
|
|
|
|
->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref'")), $this->equalTo(null), $this->equalTo($this->winCompat($tmpDir)))
|
|
|
|
->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref' --")), $this->equalTo(null), $this->equalTo($this->winCompat($tmpDir)))
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
->will($this->returnValue(0));
|
|
|
|
|
|
|
|
|
|
|
|
$downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
|
|
|
|
$downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
|
|
|
|