Skip to content

Commit 9b83f5f

Browse files
authored
Remove Symfony3 specific code (#60)
Symfony3 is no longer supported as of #57
1 parent 48352dd commit 9b83f5f

File tree

1 file changed

+8
-31
lines changed

1 file changed

+8
-31
lines changed

tests/ParallelizationIntegrationTest.php

+8-31
Original file line numberDiff line numberDiff line change
@@ -204,38 +204,20 @@ public function test_it_can_run_the_command_with_one_process_as_child_process():
204204

205205
$actual = $this->getOutput();
206206

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'
226209
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process
227210
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
230213
231214
Processed 2 movies.
232215

233216
EOF
234-
,
235-
$actual,
236-
'Expected logs to be identical'
237-
);
238-
}
217+
,
218+
$actual,
219+
'Expected logs to be identical'
220+
);
239221
}
240222

241223
private function getOutput(): string
@@ -250,9 +232,4 @@ private function getOutput(): string
250232

251233
return str_replace(PHP_EOL, "\n", $output);
252234
}
253-
254-
private function isSymfony3(): bool
255-
{
256-
return Kernel::VERSION_ID < 40000;
257-
}
258235
}

0 commit comments

Comments
 (0)