Skip to content

Commit f50f5b4

Browse files
jrfnlsebastianbergmann
authored andcommitted
E2E/DiffTest: fix line endings
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.
1 parent c472292 commit f50f5b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/end-to-end/testdox/_files/DiffTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
*/
1010
namespace PHPUnit\TestFixture\TestDox;
1111

12-
use const PHP_EOL;
1312
use PHPUnit\Framework\TestCase;
1413

1514
final class DiffTest extends TestCase
1615
{
1716
public function testSomethingThatDoesNotWork(): void
1817
{
1918
$this->assertEquals(
20-
'foo' . PHP_EOL . 'bar' . PHP_EOL . 'baz' . PHP_EOL,
21-
'foo' . PHP_EOL . 'baz' . PHP_EOL . 'bar' . PHP_EOL,
19+
"foo\nbar\nbaz\n",
20+
"foo\nbaz\nbar\n",
2221
);
2322
}
2423
}

0 commit comments

Comments
 (0)