| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4.1755 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | * @throws \BadMethodCallException |
||
| 39 | */ |
||
| 40 | 33 | public function onProcessParsingCompleted(ProcessEvent $processEvent) |
|
| 41 | { |
||
| 42 | 33 | $process = $processEvent->getProcess(); |
|
| 43 | |||
| 44 | 33 | foreach ($process->getTestResults() as $testResult) { |
|
| 45 | 33 | $this->printFormattedWithCounter($testResult); |
|
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param PrintableTestResultInterface $testResult |
||
| 51 | */ |
||
| 52 | 33 | private function printFormattedWithCounter(PrintableTestResultInterface $testResult) |
|
| 53 | { |
||
| 54 | 33 | if ($this->counter % 80 === 0 && $this->counter > 1) { |
|
| 55 | 6 | $this->output->writeln(''); |
|
| 56 | } |
||
| 65 |