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