Skip to content

Commit b5228fe

Browse files
Rename parameter
1 parent 398aafc commit b5228fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ public static function provider(): array
5656
}
5757

5858
/**
59-
* @param non-empty-string $expected
59+
* @param non-empty-string $expectedMessage
6060
* @param positive-int $majorVersionNumber
6161
* @param non-empty-string $versionId
6262
* @param non-empty-string $latestVersion
6363
* @param non-empty-string $latestCompatibleVersion
6464
*/
6565
#[DataProvider('provider')]
66-
public function testChecksVersion(string $expected, int $majorVersionNumber, string $versionId, string $latestVersion, string $latestCompatibleVersion): void
66+
public function testChecksVersion(string $expectedMessage, int $majorVersionNumber, string $versionId, string $latestVersion, string $latestCompatibleVersion): void
6767
{
6868
$command = new VersionCheckCommand(
6969
$this->downloader($latestVersion, $latestCompatibleVersion),
@@ -73,7 +73,7 @@ public function testChecksVersion(string $expected, int $majorVersionNumber, str
7373

7474
$result = $command->execute();
7575

76-
$this->assertSame($expected, trim($result->output()));
76+
$this->assertSame($expectedMessage, $result->output());
7777
}
7878

7979
private function downloader(string $latestVersion, string $latestCompatibleVersion): Downloader&Stub

0 commit comments

Comments
 (0)