Skip to content

Commit

Permalink
Normalize the file content line ending in 'toBeFileWithContent()'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mickverm committed Sep 13, 2024
1 parent 3c94467 commit cbc0997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
expect()->extend('toBeFileWithContent', function (string $fileContent) {
test()->assertFileExists($this->value);

expect(file_get_contents($this->value))->toBe($fileContent);
expect(str_replace(PHP_EOL, "\n", file_get_contents($this->value)))->toBe($fileContent);

return $this;
});
Expand Down

0 comments on commit cbc0997

Please sign in to comment.