Skip to content

Commit

Permalink
Merge pull request #6 from lawnstarter/PE-22378
Browse files Browse the repository at this point in the history
PE-22378: small fix
  • Loading branch information
rodvilla authored Mar 9, 2023
2 parents e8144d2 + c68620e commit f3ad909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpunitMerger/Command/LogCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private function addTestSuites(\DOMElement $parent, array $testSuites)
$element->setAttribute('parent', $parent->getAttribute('name'));
$attributes = $testSuite['@attributes'] ?? [];
foreach ($attributes as $key => $value) {
$value = in_array($key, ['name','errors','failures','skipped']) ? $value : 0;
$value = in_array($key, ['name', 'errors', 'failures', 'skipped', 'file']) ? $value : 0;
$element->setAttribute($key, (string)$value);
}
$parent->appendChild($element);
Expand Down

0 comments on commit f3ad909

Please sign in to comment.