Skip to content

Commit

Permalink
Normailze line endings for Windows tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Feb 22, 2024
1 parent d45304a commit 51a4cdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,13 @@

class TestCase extends \PHPUnit\Framework\TestCase
{
public static function assertEquals($expected, $actual, string $message = ''): void
{
if (is_string($expected) && is_string($actual)) {
$expected = str_replace("\r\n", "\n", $expected);
$actual = str_replace("\r\n", "\n", $actual);
}

parent::assertEquals($expected, $actual, $message);
}
}

0 comments on commit 51a4cdf

Please sign in to comment.