| 1 | <?php |
||
| 13 | trait ProxyTrait |
||
| 14 | { |
||
| 15 | private $object; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var MockingStrategyInterface |
||
| 19 | */ |
||
| 20 | private $mockingStrategy; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 25 | |||
| 26 | 1 | public function __call($name, array $arguments) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param mixed $object |
||
| 35 | */ |
||
| 36 | 8 | public function _moka_setObject($object) |
|
| 40 | |||
| 41 | 8 | public function _moka_setMockingStrategy(MockingStrategyInterface $mockingStrategy) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param array $methodsWithValues |
||
| 48 | * @return ProxyInterface |
||
| 49 | * |
||
| 50 | * @throws InvalidArgumentException |
||
| 51 | * @throws MockNotCreatedException |
||
| 52 | */ |
||
| 53 | public function stub(array $methodsWithValues): ProxyInterface |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return object |
||
| 62 | * |
||
| 63 | * @throws MockNotServedException |
||
| 64 | */ |
||
| 65 | public function serve() |
||
| 69 | } |
||
| 70 |