diff --git a/tests/phpunit/src/Commands/Api/ApiCommandTest.php b/tests/phpunit/src/Commands/Api/ApiCommandTest.php index d76dd1146..c6f0beec4 100644 --- a/tests/phpunit/src/Commands/Api/ApiCommandTest.php +++ b/tests/phpunit/src/Commands/Api/ApiCommandTest.php @@ -56,7 +56,7 @@ public function testTaskWait(): void Duration: 0 seconds EOD; - $this->assertEquals($expected, $output); + $this->assertStringEqualsStringIgnoringLineEndings($expected, $output); $this->assertEquals(0, $this->getStatusCode()); } @@ -143,7 +143,7 @@ public function testApiCommandErrorResponse(): void } EOD; - $this->assertEquals($expected, $output); + $this->assertStringEqualsStringIgnoringLineEndings($expected, $output); $this->assertEquals(1, $this->getStatusCode()); }