feat(tia): continues to work on poc

This commit is contained in:
nuno maduro
2026-04-20 10:05:55 -07:00
parent 9c8033d60c
commit 47f1fc2d94
2 changed files with 173 additions and 10 deletions

View File

@ -97,6 +97,20 @@ final class ResultCollector
}
}
/**
* Injects externally-collected results (e.g. partials flushed by parallel
* workers) into this collector so the parent can persist them in the same
* snapshot pass as non-parallel runs.
*
* @param array<string, array{status: int, message: string, time: float, assertions: int}> $results
*/
public function merge(array $results): void
{
foreach ($results as $testId => $result) {
$this->results[$testId] = $result;
}
}
public function reset(): void
{
$this->results = [];