| Conditions | 4 |
| Paths | 4 |
| Total Lines | 27 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 16 | private function printFileRecap(TestResultContainerInterface $testResultContainer) |
|
| 34 | 16 | { |
|
| 35 | if (! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) { |
||
| 36 | return; |
||
| 37 | 16 | } |
|
| 38 | |||
| 39 | 16 | $filenames = $testResultContainer->getFileNames(); |
|
| 40 | 13 | ||
| 41 | 13 | if (count($filenames)) { |
|
| 42 | 13 | $tag = $testResultContainer->getTestResultFormat()->getTag(); |
|
| 43 | 13 | $title = $testResultContainer->getTestResultFormat()->getTitle(); |
|
| 44 | $this->getOutput()->writeln(''); |
||
| 45 | 13 | $this->getOutput()->writeln( |
|
| 46 | sprintf( |
||
| 47 | '<%s>%d files with %s:</%s>', |
||
| 48 | $tag, |
||
| 49 | count($filenames), |
||
| 50 | strtoupper($title), |
||
| 51 | $tag |
||
| 52 | ) |
||
| 53 | 13 | ); |
|
| 54 | 13 | ||
| 55 | foreach ($filenames as $fileName) { |
||
| 56 | $this->getOutput()->writeln(sprintf(' <%s>%s</%s>', $tag, $fileName, $tag)); |
||
| 57 | 16 | } |
|
| 58 | } |
||
| 59 | } |
||
| 60 | } |
||
| 61 |