| 1 | <?php |
||
| 17 | class Moka |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param string $fqcn |
||
| 21 | * @param string|null $alias |
||
| 22 | * @return Proxy |
||
| 23 | * |
||
| 24 | * @throws MockNotCreatedException |
||
| 25 | * @throws InvalidIdentifierException |
||
| 26 | */ |
||
| 27 | 3 | public static function get(string $fqcn, string $alias = null): Proxy |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $fqcn |
||
| 34 | * @param string|null $alias |
||
| 35 | * @return Proxy |
||
| 36 | * |
||
| 37 | * @throws MockNotCreatedException |
||
| 38 | * @throws InvalidIdentifierException |
||
| 39 | */ |
||
| 40 | 13 | public static function phpunit(string $fqcn, string $alias = null): Proxy |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $fqcn |
||
| 47 | * @param string|null $alias |
||
| 48 | * @return Proxy |
||
| 49 | * |
||
| 50 | * @throws MockNotCreatedException |
||
| 51 | * @throws InvalidIdentifierException |
||
| 52 | */ |
||
| 53 | 1 | public static function prophecy(string $fqcn, string $alias = null): Proxy |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @return void |
||
| 60 | */ |
||
| 61 | 14 | public static function reset() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @return void |
||
| 68 | * |
||
| 69 | * @deprecated since 0.3.0 |
||
| 70 | */ |
||
| 71 | 1 | public static function clean() |
|
| 75 | } |
||
| 76 |