for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* This file is part of PHPUnit Coverage Check.
*
* (c) Eric Sizemore <[email protected]>
* (c) Richard Regeer <[email protected]>
* This source file is subject to the MIT license. For the full copyright,
* license information, and credits/acknowledgements, please view the LICENSE
* and README files that were distributed with this source code.
*/
namespace Esi\CoverageCheck\Style;
use Override;
use Symfony\Component\Console\Style\SymfonyStyle;
* @see SymfonyStyle
final class CoverageCheckStyle extends SymfonyStyle
{
#[Override]
public function error(array|string $message, bool $onlyPercentage = false): void
$this->block($message, ($onlyPercentage ? null : 'ERROR'), 'fg=white;bg=red', ' ', true);
}
public function success(array|string $message, bool $onlyPercentage = false): void
$this->block($message, ($onlyPercentage ? null : 'OK'), 'fg=black;bg=green', ' ', true);
public function table(array $headers, array $rows): void
$this->createTable()
->setHeaders($headers)
->setRows($rows)
->setColumnMaxWidth(0, 70)
->render()
;
$this->newLine();