| Conditions | 3 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 20 | public static function assertRemove($value, string $message = ''): void |
|
| 36 | { |
||
| 37 | 20 | if (!is_bool($value)) { |
|
| 38 | 10 | $format = 0 === strlen($message) ? 'Expected true or false. Got: %1$s' : $message; |
|
| 39 | 10 | $message = sprintf($format, self::valueToString($value)); |
|
| 40 | 10 | throw new InvalidArgumentException($message); |
|
| 41 | } |
||
| 44 |