Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait SetExceptionsTrait |
||
12 | { |
||
13 | /** |
||
14 | * Set the expected exception and message when defining a test that will fail. |
||
15 | * |
||
16 | * @param string|null $message |
||
17 | * @return void |
||
18 | */ |
||
19 | protected function setFailureException($message) |
||
24 | } |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Set the expected exception and message when testing a call with invalid arguments to a method. |
||
29 | * |
||
30 | * @param integer $arg |
||
31 | * @param string $type |
||
32 | * @param mixed $value |
||
33 | * @return void |
||
34 | */ |
||
35 | protected function setInvalidArgumentException(int $arg, string $type, $value = null) |
||
50 |