@@ -178,15 +178,12 @@ public function testKeepThePreviousStateOfOneViewComponentByDefault(): void
178178 $ html = <<<'html'
179179 <div>Hi</div>
180180 <div>Hi</div>
181-
182181 <input type="number" />
183-
184182 <input type="number" />
185-
186183 html;
187184
188185 // if windows replace \n with \r\n
189- $ html = str_replace ("\n" , PHP_EOL , $ html );
186+ $ html = str_replace ([ "\n" , "\r" ], '' , $ html );
190187
191188 $ this ->expectOutputString ($ html );
192189
@@ -205,11 +202,9 @@ public function testKeepThePreviousStateOfDataSettedBySetMethod(): void
205202 $ html = <<<'html'
206203 <div>qux</div>
207204 <div>bar</div>
208-
209205 html;
210206
211- // if windows replace \n with \r\n
212- $ html = str_replace ("\n" , PHP_EOL , $ html );
207+ $ html = str_replace (["\n" , "\r" ], '' , $ html );
213208
214209 $ this ->expectOutputString ($ html );
215210
@@ -222,19 +217,15 @@ public static function renderDataProvider(): array
222217 $ html1 = <<<'html'
223218 <div>Hi</div>
224219 <div></div>
225-
226220 html;
227221
228222 $ html2 = <<<'html'
229-
230223 <input type="number" />
231-
232224 <input type="text" />
233-
234225 html;
235226
236- $ html1 = str_replace (["\n" , "\r\n " ], PHP_EOL , $ html1 );
237- $ html2 = str_replace (["\n" , "\r\n " ], PHP_EOL , $ html2 );
227+ $ html1 = str_replace (["\n" , "\r" ], '' , $ html1 );
228+ $ html2 = str_replace (["\n" , "\r" ], '' , $ html2 );
238229
239230 return [
240231 [
0 commit comments