Skip to content

Commit

Permalink
Remove the @package_version@ part.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed May 29, 2023
1 parent ef0925a commit 6820c65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ public function testRendererCreatesExpectedNumberOfJsonElements()

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

Expand Down Expand Up @@ -123,11 +119,7 @@ public function testRendererAddsProcessingErrorsToJsonReport()

$this->assertJsonEquals(
$writer->getData(),
'renderer/sarif_renderer_processing_errors.sarif',
function ($actual) {
$actual['runs'][0]['tool']['driver']['version'] = '@package_version@';
return $actual;
}
'renderer/sarif_renderer_processing_errors.sarif'
);
}
}
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": [
{
"id": "TestRuleSet\/RuleStub",
Expand Down

0 comments on commit 6820c65

Please sign in to comment.