| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function writeResult(CoverageResultNode $result) |
||
| 46 | { |
||
| 47 | $coverage = $result->getCodeCoverage(); |
||
| 48 | $coverageText = $coverage->formattedValue(); |
||
| 49 | |||
| 50 | if ($this->bounds->isSatisfactory($coverage)) { |
||
| 51 | $this->console->writeText($coverageText, Color::GREEN); |
||
| 52 | } else if ($this->bounds->isCritical($coverage)) { |
||
| 53 | $this->console->writeText($coverageText, Color::RED); |
||
| 54 | } else { |
||
| 55 | $this->console->writeText($coverageText, Color::YELLOW); |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 60 |