Skip to content

Commit

Permalink
Update src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle <kylekatarnls@users.noreply.github.com>
  • Loading branch information
tvbeek and kylekatarnls committed Jun 22, 2023
1 parent 47ce493 commit ee08314
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ public function testRendererCreatesExpectedNumberOfJsonElements()

$this->assertJsonEquals(
$writer->getData(),
'renderer/sarif_renderer_expected.sarif'
'renderer/sarif_renderer_expected.sarif',
function ($actual) {
$actual['runs'][0]['tool']['driver']['version'] = '@package_version@';
return $actual;
}
);
}

Expand Down

0 comments on commit ee08314

Please sign in to comment.