Skip to content

Commit db78ea3

Browse files
danielpalmesebastianbergmann
authored andcommitted
Added missing Clover attributes
1 parent 2bcb704 commit db78ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Report/Clover.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function process(CodeCoverage $coverage, ?string $target = null, ?string
5050
/* @var File $item */
5151

5252
$xmlFile = $xmlDocument->createElement('file');
53-
$xmlFile->setAttribute('name', $item->getPath());
53+
$xmlFile->setAttribute('path', $item->getPath());
54+
$xmlFile->setAttribute('name', $item->getName());
5455

5556
$classes = $item->getClassesAndTraits();
5657
$coverageData = $item->getCoverageData();

0 commit comments

Comments
 (0)