diff --git a/src/PhpunitMerger/Command/LogCommand.php b/src/PhpunitMerger/Command/LogCommand.php index d30e6ef..10c1b63 100644 --- a/src/PhpunitMerger/Command/LogCommand.php +++ b/src/PhpunitMerger/Command/LogCommand.php @@ -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 = $key === 'name' ? $value : 0; + $value = $key === 'name' || $key === 'file' ? $value : 0; $element->setAttribute($key, (string)$value); } $parent->appendChild($element);