diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 68ed4bb..401afee 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -53,6 +53,8 @@ EOF, 'location' => 'after_open', ], + 'heredoc_indentation' => true, + 'heredoc_to_nowdoc' => true, 'is_null' => true, 'list_syntax' => [ 'syntax' => 'short', diff --git a/tests/ParallelizationIntegrationTest.php b/tests/ParallelizationIntegrationTest.php index 822c2ff..146bdf1 100644 --- a/tests/ParallelizationIntegrationTest.php +++ b/tests/ParallelizationIntegrationTest.php @@ -68,14 +68,14 @@ public function test_it_can_run_the_command_without_sub_processes(): void self::assertSame( <<<'EOF' -Processing 2 movies in segments of 2, batches of 50, 1 round, 1 batch in 1 process + Processing 2 movies in segments of 2, batches of 50, 1 round, 1 batch in 1 process - 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB - 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB + 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB + 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB -Processed 2 movies. + Processed 2 movies. -EOF + EOF , $actual, 'Expected logs to be identical' @@ -96,14 +96,14 @@ public function test_it_can_run_the_command_with_a_single_sub_processes(): void self::assertSame( <<<'EOF' -Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process + Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process - 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB - 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB + 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB + 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB -Processed 2 movies. + Processed 2 movies. -EOF + EOF , $actual, 'Expected logs to be identical' @@ -124,14 +124,14 @@ public function test_it_can_run_the_command_with_multiple_processes(): void self::assertSame( <<<'EOF' -Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 2 processes + Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 2 processes - 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB - 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB + 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB + 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB -Processed 2 movies. + Processed 2 movies. -EOF + EOF , $actual, 'Expected logs to be identical' @@ -152,14 +152,14 @@ public function test_it_can_run_the_command_with_one_process_as_child_process(): self::assertSame( <<<'EOF' -Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process + Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process - 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB - 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB + 0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB + 2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB -Processed 2 movies. + Processed 2 movies. -EOF + EOF , $actual, 'Expected logs to be identical'