1 | <?php |
||
24 | class Moka |
||
25 | { |
||
26 | const STRATEGIES = [ |
||
27 | 'mockery' => MockeryMockingStrategy::class, |
||
28 | 'phpunit' => PHPUnitMockingStrategy::class, |
||
29 | 'prophecy' => ProphecyMockingStrategy::class |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @param string $fqcn |
||
34 | * @param string|null $alias |
||
35 | * @return Proxy |
||
36 | * |
||
37 | * @throws MockNotCreatedException |
||
38 | * @throws InvalidIdentifierException |
||
39 | */ |
||
40 | 5 | public static function brew(string $fqcn, string $alias = null, MockingStrategyInterface $mockingStrategy = null): Proxy |
|
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @param array $arguments |
||
49 | * @return Proxy |
||
50 | * |
||
51 | * @throws NotImplementedException |
||
52 | */ |
||
53 | 2 | public static function __callStatic($name, $arguments) |
|
70 | |||
71 | /** |
||
72 | * @return void |
||
73 | */ |
||
74 | 2 | public static function clean() |
|
78 | |||
79 | /** |
||
80 | * @param string $fqcn |
||
81 | * @param string|null $alias |
||
82 | * @return Proxy |
||
83 | * |
||
84 | * @throws MockNotCreatedException |
||
85 | * @throws InvalidIdentifierException |
||
86 | * |
||
87 | * @deprecated since 0.3.0 |
||
88 | */ |
||
89 | 1 | public static function get(string $fqcn, string $alias = null): Proxy |
|
93 | } |
||
94 |