| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class Text implements Output |
||
| 7 | { |
||
| 8 | public function output(array $coverage, float $percent, float $minimumPercent) |
||
| 9 | { |
||
| 10 | |||
| 11 | printf("%.2f%% Covered\n", $percent); |
||
| 12 | |||
| 13 | $output = ''; |
||
| 14 | foreach ($coverage as $filename => $lines) { |
||
| 15 | $output .= "\n\n'$filename' has no coverage for the following lines:\n"; |
||
| 16 | foreach ($lines as $line => $message) { |
||
| 17 | $output .= $this->generateOutputLine($line, $message); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | echo trim($output) . "\n"; |
||
| 22 | } |
||
| 23 | |||
| 24 | private function generateOutputLine($line, $message) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |