From 9f3c4e1e8245f0dcc4d56072d0ed5883676361ba Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Wed, 5 Aug 2026 18:51:49 +0100 Subject: [PATCH] fix --- src/Plugins/Tia.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Plugins/Tia.php b/src/Plugins/Tia.php index 8157a5a9..c37898ff 100644 --- a/src/Plugins/Tia.php +++ b/src/Plugins/Tia.php @@ -1401,6 +1401,16 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument return; } + // A replayed result carries the duration PHPUnit measured for a test + // that never ran — near zero. Unlike the assertion count, which the + // replay injects into the result itself, the cached duration lives only + // in this process: the parent replayed nothing of its own, so once the + // partial is written the real value is unrecoverable. Launder it here + // and the parent's verbatim read is correct by construction. + foreach ($results as $testId => $result) { + $results[$testId]['time'] = $this->resultTime($testId, $result['time']); + } + $json = json_encode([ 'results' => $results, 'replayed' => $this->replayedCount,