mirror of
https://github.com/pestphp/pest.git
synced 2026-09-06 06:43:35 +02:00
fix
This commit is contained in:
@@ -1401,6 +1401,16 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument
|
|||||||
return;
|
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([
|
$json = json_encode([
|
||||||
'results' => $results,
|
'results' => $results,
|
||||||
'replayed' => $this->replayedCount,
|
'replayed' => $this->replayedCount,
|
||||||
|
|||||||
Reference in New Issue
Block a user