Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
35 | public function formatSingleResult(PrintableTestResultInterface $singleResult): string |
||
36 | { |
||
37 | $format = $singleResult->getTestResultFormat(); |
||
38 | |||
39 | if (! $format instanceof TestResultWithSymbolFormat) { |
||
40 | return ''; |
||
41 | } |
||
42 | |||
43 | $resultSymbol = $format->getTestResultSymbol(); |
||
44 | $tag = $this->tagMap[$resultSymbol]; |
||
45 | |||
46 | return sprintf('<%s>%s</%s>', $tag, $resultSymbol, $tag); |
||
47 | } |
||
48 | |||
54 |