fix: todo in parallel

This commit is contained in:
Nuno Maduro
2023-03-03 01:09:35 +00:00
parent 99436f94f9
commit 2876ac590d
4 changed files with 22 additions and 13 deletions

View File

@ -68,11 +68,13 @@ final class ResultPrinter
public function print(string $buffer): void
{
$buffer = OutputFormatter::escape($buffer);
if (! str_starts_with($buffer, "\nGenerating code coverage report")
&& ! str_starts_with($buffer, 'done [')) {
$this->output->write(OutputFormatter::escape($buffer));
if (str_starts_with($buffer, "\nGenerating code coverage report")) {
return;
}
if (str_starts_with($buffer, 'done [')) {
return;
}
$this->output->write(OutputFormatter::escape($buffer));
}
public function flush(): void