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 | protected function getErrorMock($code, $message) |
||
54 | |||
55 | /** |
||
56 | * @param RpcRequestInterface[] $requests |
||
57 | * @param RpcResponseInterface[] $responses |
||
58 | * |
||
59 | * @return RpcClientInterface |
||
60 | */ |
||
61 | protected function getClientMock(array $requests = [], array $responses = []) |
||
82 | } |
||
83 |
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.