Skip to content

Commit

Permalink
E2E/DiffTest: fix line endings
Browse files Browse the repository at this point in the history
As far as I can see, this test is about the display of the diff, not about the line endings, in which case, let's make the line endings explicit and not OS-dependent to allow this test to pass on Windows as well.
  • Loading branch information
jrfnl authored and sebastianbergmann committed Sep 4, 2023
1 parent c472292 commit f50f5b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/end-to-end/testdox/_files/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
*/
namespace PHPUnit\TestFixture\TestDox;

use const PHP_EOL;
use PHPUnit\Framework\TestCase;

final class DiffTest extends TestCase
{
public function testSomethingThatDoesNotWork(): void
{
$this->assertEquals(
'foo' . PHP_EOL . 'bar' . PHP_EOL . 'baz' . PHP_EOL,
'foo' . PHP_EOL . 'baz' . PHP_EOL . 'bar' . PHP_EOL,
"foo\nbar\nbaz\n",
"foo\nbaz\nbar\n",
);
}
}

0 comments on commit f50f5b4

Please sign in to comment.