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

Console   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A printResults() 0 10 2
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
}