mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
Style
This commit is contained in:
committed by
Nuno Maduro
parent
a34001faf0
commit
87ee5ef36b
22
src/Plugins/Parallel/Paratest/CleanConsoleOutput.php
Normal file
22
src/Plugins/Parallel/Paratest/CleanConsoleOutput.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Pest\Plugins\Parallel\Paratest;
|
||||
|
||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||
|
||||
class CleanConsoleOutput extends ConsoleOutput
|
||||
{
|
||||
protected function doWrite(string $message, bool $newline): void
|
||||
{
|
||||
if ($this->isOpeningHeadline($message)) {
|
||||
return;
|
||||
}
|
||||
|
||||
parent::doWrite($message, $newline);
|
||||
}
|
||||
|
||||
private function isOpeningHeadline(string $message): bool
|
||||
{
|
||||
return str_contains($message, 'by Sebastian Bergmann and contributors.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user