Skip to content

Commit

Permalink
Keep Linux compatibility for SARIFRendererTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jun 23, 2023
1 parent 0f893ec commit 4e97118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function testRendererAddsProcessingErrorsToJsonReport()
$renderer->renderReport($report);
$renderer->end();
$data = strtr($writer->getData(), array(
addslashes(realpath(__DIR__ . '/../../../resources/files')) => '#{rootDirectory}',
substr(json_encode(realpath(__DIR__ . '/../../../resources/files')), 1, -1) => '#{rootDirectory}',
'src\\\\test\\\\resources\\\\files' => 'src/test/resources/files',
));
$actual = json_decode($data, true);
Expand Down

0 comments on commit 4e97118

Please sign in to comment.