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