Skip to content

Commit

Permalink
Change line endings in the json to see if that fixes the test on Wind…
Browse files Browse the repository at this point in the history
…ows.
  • Loading branch information
tvbeek committed May 26, 2023
1 parent 449a683 commit 5025261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function testRendererCreatesExpectedNumberOfJsonElements()
$writer = new WriterStub();

$rule = new RuleStub('AnotherRuleStub');
$rule->addExample(" class Example\n{\n}\n ");
$rule->addExample("\nclass AnotherExample\n{\n public \$var;\n}\n ");
$rule->addExample(' class Example'. PHP_EOL . '{'.PHP_EOL . '}'. PHP_EOL . ' ');
$rule->addExample(PHP_EOL . 'class AnotherExample'. PHP_EOL . '{'.PHP_EOL .' public $var;'. PHP_EOL . '}'. PHP_EOL . ' ');
$rule->setSince(null);

$complexRuleViolationMock = $this->getRuleViolationMock(getcwd() . '/src/foobar.php', 23, 42, $rule);
Expand Down

0 comments on commit 5025261

Please sign in to comment.