Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait StaticCalling |
||
6 | { |
||
7 | /** |
||
8 | * Performs a static method call. |
||
9 | * |
||
10 | * Note that parent::class should be used instead of 'parent' |
||
11 | * to refer to the actual parent class. |
||
12 | * |
||
13 | * @param string $className Name of the class |
||
14 | * @param string $methodName Name of the method |
||
15 | * |
||
16 | * @return mixed |
||
17 | * |
||
18 | * @see https://www.pagemachine.de/blog/mocking-static-method-calls/. |
||
19 | */ |
||
20 | 1 | public function callStatic($className, $methodName) |
|
28 |