Skip to content

Commit

Permalink
Windoes woes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed May 2, 2024
1 parent 76e81c0 commit 8060584
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ public static function assertStringContainsStringWithNormalizedLineEndings($need
);
}

/**
* Normalize line endings before performing assertion in windows.
*/
public static function assertSameWithNormalizedLineEndings($needle, $haystack, $message = ''): void
{
static::assertSame(
static::normalizeMultilineString($needle),
static::normalizeMultilineString($haystack),
$message
);
}

/**
* @deprecated
*/
Expand Down

0 comments on commit 8060584

Please sign in to comment.