@@ -204,38 +204,20 @@ public function test_it_can_run_the_command_with_one_process_as_child_process():
204
204
205
205
$ actual = $ this ->getOutput ();
206
206
207
- if ($ this ->isSymfony3 ()) {
208
- self ::assertSame (
209
- <<<'EOF'
210
- Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process
211
-
212
- 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
213
- 1/2 [==============>-------------] 50% < 1 sec/< 1 sec 10.0 MiB
214
- 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
215
-
216
- Processed 2 movies.
217
-
218
- EOF
219
- ,
220
- $ actual ,
221
- 'Expected logs to be identical '
222
- );
223
- } else {
224
- self ::assertSame (
225
- <<<'EOF'
207
+ self ::assertSame (
208
+ <<<'EOF'
226
209
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process
227
210
228
- 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
229
- 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
211
+ 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
212
+ 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
230
213
231
214
Processed 2 movies.
232
215
233
216
EOF
234
- ,
235
- $ actual ,
236
- 'Expected logs to be identical '
237
- );
238
- }
217
+ ,
218
+ $ actual ,
219
+ 'Expected logs to be identical '
220
+ );
239
221
}
240
222
241
223
private function getOutput (): string
@@ -250,9 +232,4 @@ private function getOutput(): string
250
232
251
233
return str_replace (PHP_EOL , "\n" , $ output );
252
234
}
253
-
254
- private function isSymfony3 (): bool
255
- {
256
- return Kernel::VERSION_ID < 40000 ;
257
- }
258
235
}
0 commit comments