for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lloople\PHPUnitExtensions\Runners\SlowestTests;
class Console extends Channel
{
public function __construct(?int $rows = 5)
parent::__construct($rows);
}
protected function printResults(): void
echo PHP_EOL . "Showing the top {$this->rows} slowest tests:" . PHP_EOL;
foreach ($this->testsToPrint() as $test => $time) {
echo str_pad($time, 5, ' ', STR_PAD_LEFT) . " ms: {$test}" . PHP_EOL;
echo PHP_EOL;