| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 4 | private function countersStatistics(): string |
|
| 39 | { |
||
| 40 | $added = |
||
| 41 | 4 | $this->report->getProfiler() |
|
| 42 | 4 | ->counter(static::ADDED)->getValue(); |
|
| 43 | $benchmarked = |
||
| 44 | 4 | $this->report->getProfiler() |
|
| 45 | 4 | ->counter(static::BENCHMARKED)->getValue(); |
|
| 46 | 4 | if ($added === $benchmarked) { |
|
| 47 | 1 | return ''; |
|
| 48 | } |
||
| 49 | |||
| 50 | return |
||
| 51 | 3 | sprintf( |
|
| 52 | 3 | '%s: %s %s: %s %s %s', |
|
| 53 | 3 | static::ADDED, |
|
| 54 | 3 | $added, |
|
| 55 | 3 | static::BENCHMARKED, |
|
| 56 | 3 | $benchmarked, |
|
| 57 | 3 | $this->countedExceptions($added, $benchmarked), |
|
| 58 | 3 | PHP_EOL |
|
| 59 | ); |
||
| 82 |