Completed
Push — master ( 501416...580ac7 )
by David
01:23
created

Console::printResults()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Lloople\PHPUnitExtensions\Runners\SlowestTests;
4
5
class Console extends Channel
6
{
7
    protected function printResults(): void
8
    {
9
        echo PHP_EOL . "Showing the top {$this->rows} slowest tests:" . PHP_EOL;
10
11
        foreach ($this->testsToPrint() as $test => $time) {
12
            echo str_pad($time, 5, ' ', STR_PAD_LEFT) . " ms: {$test}" . PHP_EOL;
13
        }
14
15
        echo PHP_EOL;
16
    }
17
}