Skip to content

Commit

Permalink
Set version number in renderer processing file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed May 29, 2023
1 parent 0e0f7d4 commit ef0925a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"driver": {
"name": "PHPMD",
"informationUri": "https:\/\/phpmd.org",
"version": "@package_version@",
"version": "2.1.0",
"rules": []
}
},
Expand Down

0 comments on commit ef0925a

Please sign in to comment.