From f8c08d0aa471ab110130aae894ff9382e6c93408 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Thu, 20 Aug 2020 19:04:59 +0200 Subject: [PATCH] Failing test for ignoreWhitespace --- tests/IgnoreWhitespaceTest.php | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/IgnoreWhitespaceTest.php diff --git a/tests/IgnoreWhitespaceTest.php b/tests/IgnoreWhitespaceTest.php new file mode 100644 index 00000000..f34a78ab --- /dev/null +++ b/tests/IgnoreWhitespaceTest.php @@ -0,0 +1,55 @@ + true, + ], [ + 'cliColorization' => RendererConstant::CLI_COLOR_DISABLE, + ]); + $this->assertSame(<<<'DIFF' +@@ -2,9 +2,5 @@ + + function foo(\DateTimeImmutable $date) + { +- if ($date) { + echo 'foo'; +- } else { +- echo 'bar'; +- } + } +DIFF, $diff); + } +}