Skip to content

Commit f1d7851

Browse files
Closes #6133
1 parent 18b24d0 commit f1d7851

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog-12.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes of the PHPUnit 12.0 release series are documented in this fi
1111
### Fixed
1212

1313
* [#5951](https://github.com/sebastianbergmann/phpunit/issues/5951#issuecomment-2656364815): Restore the `includeUncoveredFiles` configuration option
14+
* [#6133](https://github.com/sebastianbergmann/phpunit/issues/6133): Precision loss in aggregated test suite execution time(s) reported by JUnit XML logger
1415
* A `Test\PreparationFailed` event is now emitted in addition to a `Test\Errored` event when an unexpected exception is triggered in a before-test method
1516
* A `Test\Passed` event is no longer emitted in addition to a `Test\Failed` or `Test\Errored` event when an assertion failure or an unexpected exception is triggered in an after-test method
1617
* A `TestSuite\Finished` event is now emitted when a before-first-test method errors

src/Logging/JUnit/JunitXmlLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private function handleFinish(Info $telemetryInfo, int $numberOfAssertionsPerfor
285285
);
286286

287287
$this->testSuiteTests[$this->testSuiteLevel]++;
288-
$this->testSuiteTimes[$this->testSuiteLevel] += (int) $time;
288+
$this->testSuiteTimes[$this->testSuiteLevel] += $time;
289289

290290
$this->currentTestCase = null;
291291
$this->time = null;

0 commit comments

Comments
 (0)