1 | <?php |
||
12 | abstract class AbstractRpcTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @param string $method |
||
16 | * @param array $params |
||
17 | * |
||
18 | * @return RpcRequestInterface |
||
19 | */ |
||
20 | protected function getRequestMock($method, array $params = []) |
||
28 | |||
29 | /** |
||
30 | * @param bool $success |
||
31 | * @param \stdClass|array|null|mixed $body |
||
32 | * @param RpcErrorInterface $error |
||
33 | * |
||
34 | * @return RpcResponseInterface |
||
35 | */ |
||
36 | protected function getResponseMock($success = true, $body = null, RpcErrorInterface $error = null) |
||
45 | |||
46 | /** |
||
47 | * @param mixed $code |
||
48 | * @param string $message |
||
49 | * |
||
50 | * @return RpcErrorInterface |
||
51 | */ |
||
52 | protected function getErrorMock($code, $message) |
||
60 | |||
61 | /** |
||
62 | * @param RpcRequestInterface[] $requests |
||
63 | * @param RpcResponseInterface[] $responses |
||
64 | * |
||
65 | * @return RpcClientInterface |
||
66 | */ |
||
67 | protected function getClientMock(array $requests = [], array $responses = []) |
||
88 | } |
||
89 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.