1 | <?php |
||
26 | final class MockComponent |
||
27 | { |
||
28 | /** |
||
29 | * Record all menthod / args to be called when mixin is used on some entity |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $component_methods = array(); |
||
34 | |||
35 | /** |
||
36 | * Call passes all calls to no existing methods to self::methodProvider |
||
37 | * |
||
38 | * @param string $method |
||
39 | * @param array $args |
||
40 | * @throws InvalidComponentMethodException |
||
41 | * @return MockComponent |
||
42 | */ |
||
43 | 3 | public function __call(string $method, $args) |
|
48 | } |
||
49 |