Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | trait CanThrowInvalidArgumentException |
||
13 | { |
||
14 | /** |
||
15 | * Throws an InvalidArgumentException because of an invalid argument passed to a method. |
||
16 | * |
||
17 | * @param integer $argument |
||
18 | * @param string $type |
||
19 | * @param mixed $value |
||
20 | * |
||
21 | * @return void |
||
22 | * @throws \VGirol\PhpunitException\Exception\InvalidArgumentException |
||
23 | * |
||
24 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
25 | */ |
||
26 | 45 | protected static function invalidArgument(int $argument, string $type, $value = null): void |
|
31 |