diff --git a/tests/Console/Command/ListSetsCommandTest.php b/tests/Console/Command/ListSetsCommandTest.php index 2324da38feb..a0a93b11591 100644 --- a/tests/Console/Command/ListSetsCommandTest.php +++ b/tests/Console/Command/ListSetsCommandTest.php @@ -30,10 +30,11 @@ public function testListWithTxtFormat() '--format' => 'txt', ]); - $resultText = $commandTester->getDisplay(); + $resultRaw = $commandTester->getDisplay(); + $expectedResultStart = ' 1) @DoctrineAnnotation Rules covering Doctrine annotations'; - static::assertStringStartsWith($expectedResultStart, $resultText); + static::assertStringStartsWith($expectedResultStart, $resultRaw); static::assertSame(0, $commandTester->getStatusCode()); } @@ -43,9 +44,9 @@ public function testListWithJsonFormat() '--format' => 'json', ]); - $resultText = $commandTester->getDisplay(); + $resultRaw = $commandTester->getDisplay(); - static::assertJson($resultText); + static::assertJson($resultRaw); static::assertSame(0, $commandTester->getStatusCode()); }