Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | final class Wrapper |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | public static $methodName; |
||
18 | |||
19 | /** |
||
20 | * @var mixed[] |
||
21 | */ |
||
22 | public static $args; |
||
23 | |||
24 | /** |
||
25 | * @var mixed |
||
26 | */ |
||
27 | public static $returnValue; |
||
28 | |||
29 | /** |
||
30 | * @param mixed[] $arguments |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public static function __callStatic(string $name, array $arguments) |
||
35 | { |
||
36 | if ($name === self::$methodName) { |
||
37 | TestCase::assertSame(self::$args, $arguments); |
||
38 | |||
39 | return self::$returnValue; |
||
40 | } |
||
41 | |||
42 | return null; |
||
43 | } |
||
45 |