1
0
Fork 0
pull/7947/head
Jordi Boggiano 2019-01-29 14:22:20 +01:00
parent 4517c00d40
commit 71193132a3
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ class FileDownloaderTest extends TestCase
public function testDowngradeShowsAppropriateMessage() public function testDowngradeShowsAppropriateMessage()
{ {
$oldPackage = $this->getMock('Composer\Package\PackageInterface'); $oldPackage = $this->getMock('Composer\Package\PackageInterface');
$oldPackage->expects($this->once()) $oldPackage->expects($this->any())
->method('getFullPrettyVersion') ->method('getFullPrettyVersion')
->will($this->returnValue('1.2.0')); ->will($this->returnValue('1.2.0'));
$oldPackage->expects($this->once()) $oldPackage->expects($this->once())
@ -230,7 +230,7 @@ class FileDownloaderTest extends TestCase
->will($this->returnValue('1.2.0.0')); ->will($this->returnValue('1.2.0.0'));
$newPackage = $this->getMock('Composer\Package\PackageInterface'); $newPackage = $this->getMock('Composer\Package\PackageInterface');
$newPackage->expects($this->once()) $newPackage->expects($this->any())
->method('getFullPrettyVersion') ->method('getFullPrettyVersion')
->will($this->returnValue('1.0.0')); ->will($this->returnValue('1.0.0'));
$newPackage->expects($this->once()) $newPackage->expects($this->once())