@@ -136,7 +136,7 @@ public function testCommandWithMultilineInputs()
136136 $ command = new Command ('foo ' );
137137 $ command ->setHelperSet (new HelperSet ([new QuestionHelper ()]));
138138 $ command ->setCode (function (InputInterface $ input , OutputInterface $ output ) use ($ question , $ command ): int {
139- $ output ->write ($ command ->getHelper ('question ' )->ask ($ input , $ output , (new Question ($ question. "\n" ))->setMultiline (true )));
139+ $ output ->write ($ command ->getHelper ('question ' )->ask ($ input , $ output , (new Question ($ question ))->setMultiline (true )));
140140 $ output ->write (stream_get_contents ($ input ->getStream ()));
141141
142142 return 0 ;
@@ -152,7 +152,7 @@ public function testCommandWithMultilineInputs()
152152 $ tester ->execute ([]);
153153
154154 $ tester ->assertCommandIsSuccessful ();
155- $ this ->assertSame ($ question ."\n" . $ address ."\n" . $ address ."\n" , $ tester ->getDisplay ());
155+ $ this ->assertSame ($ question .$ address .$ address .\ PHP_EOL , $ tester ->getDisplay ());
156156 }
157157
158158 public function testCommandWithDefaultInputs ()
0 commit comments