Skip to content

Commit

Permalink
Improve code coverage for TextFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 24, 2021
1 parent 62f7d2e commit 313b82a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions tests/Report/Fixtures/file.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{# Some text line 1 #}
{# Some text line 2 #}
{# Some text line 1 #}
{# Some text line 2 #}
{# Some text line 3 #}
50 changes: 25 additions & 25 deletions tests/Report/TextFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ public function displayDataProvider(): iterable
sprintf(
<<<EOD
KO %s/Fixtures/file.twig
--------- -------------------------------
NOTICE 1 | {# Some text line 1 #}
>> | Notice
2 | {# Some text line 2 #}
--------- -------------------------------
WARNING 1 | {# Some text line 1 #}
2 | {# Some text line 2 #}
>> | Warning
3 | {# Some text line 3 #}
--------- -------------------------------
ERROR 2 | {# Some text line 2 #}
3 | {# Some text line 3 #}
>> | Error
4 |
--------- -------------------------------
FATAL >> | Fatal
--------- -------------------------------
--------- ---------------------------------------
NOTICE 1 | {# Some text line 1 #}
>> | Notice
2 | {# Some text line 2 #}
--------- ---------------------------------------
WARNING 1 | {# Some text line 1 #}
2 | {# Some text line 2 #}
>> | Warning
3 | {# Some text line 3 #}
--------- ---------------------------------------
ERROR 2 | {# Some text line 2 #}
3 | {# Some text line 3 #}
>> | Error
4 |
--------- ---------------------------------------
FATAL >> | Fatal
--------- ---------------------------------------
EOD,
__DIR__
),
Expand All @@ -85,14 +85,14 @@ public function displayDataProvider(): iterable
sprintf(
<<<EOD
KO %s/Fixtures/file.twig
------- -------------------------------
ERROR 2 | {# Some text line 2 #}
3 | {# Some text line 3 #}
>> | Error
4 |
------- -------------------------------
FATAL >> | Fatal
------- -------------------------------
------- -----------------------------------
ERROR 2 | {# Some text line 2 #}
3 | {# Some text line 3 #}
>> | Error
4 |
------- -----------------------------------
FATAL >> | Fatal
------- -----------------------------------
EOD,
__DIR__
),
Expand Down

0 comments on commit 313b82a

Please sign in to comment.