diff --git a/src/Symfony/Component/Console/Tests/Command/CompleteCommandTest.php b/src/Symfony/Component/Console/Tests/Command/CompleteCommandTest.php index ac539460946c8..bf8ab00c9f246 100644 --- a/src/Symfony/Component/Console/Tests/Command/CompleteCommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CompleteCommandTest.php @@ -82,7 +82,7 @@ public function provideInputAndCurrentOptionValues() public function testCompleteCommandName(array $input, array $suggestions) { $this->execute(['--current' => '1', '--input' => $input]); - $this->assertEquals(implode("\n", $suggestions)."\n", $this->tester->getDisplay()); + $this->assertEquals(implode("\n", $suggestions).\PHP_EOL, $this->tester->getDisplay()); } public function provideCompleteCommandNameInputs() @@ -98,7 +98,7 @@ public function provideCompleteCommandNameInputs() public function testCompleteCommandInputDefinition(array $input, array $suggestions) { $this->execute(['--current' => '2', '--input' => $input]); - $this->assertEquals(implode("\n", $suggestions)."\n", $this->tester->getDisplay()); + $this->assertEquals(implode("\n", $suggestions).\PHP_EOL, $this->tester->getDisplay()); } public function provideCompleteCommandInputDefinitionInputs()