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