Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | protected function setInvalidArgumentException(int $arg, string $type, $value = null) |
||
36 | { |
||
37 | $this->expectException(Exception::class); |
||
38 | $this->expectExceptionMessageRegExp( |
||
39 | \sprintf( |
||
40 | '/Argument #%d%sof %s::%s\(\) must be a %s/', |
||
41 | $arg, |
||
42 | is_null($value) ? '[\s\S]*' : ' \(' . \gettype($value) . '#' . $value . '\)', |
||
43 | '.*', |
||
44 | '.*', |
||
45 | \preg_quote($type) |
||
46 | ) |
||
50 |