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