From 71193132a3d7de69bb42e01d4a1524f6069d4a55 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 29 Jan 2019 14:22:20 +0100 Subject: [PATCH] Fix test --- tests/Composer/Test/Downloader/FileDownloaderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/FileDownloaderTest.php b/tests/Composer/Test/Downloader/FileDownloaderTest.php index f3f5dc6dd..10ea401a8 100644 --- a/tests/Composer/Test/Downloader/FileDownloaderTest.php +++ b/tests/Composer/Test/Downloader/FileDownloaderTest.php @@ -222,7 +222,7 @@ class FileDownloaderTest extends TestCase public function testDowngradeShowsAppropriateMessage() { $oldPackage = $this->getMock('Composer\Package\PackageInterface'); - $oldPackage->expects($this->once()) + $oldPackage->expects($this->any()) ->method('getFullPrettyVersion') ->will($this->returnValue('1.2.0')); $oldPackage->expects($this->once()) @@ -230,7 +230,7 @@ class FileDownloaderTest extends TestCase ->will($this->returnValue('1.2.0.0')); $newPackage = $this->getMock('Composer\Package\PackageInterface'); - $newPackage->expects($this->once()) + $newPackage->expects($this->any()) ->method('getFullPrettyVersion') ->will($this->returnValue('1.0.0')); $newPackage->expects($this->once())