@@ -121,6 +121,10 @@ |
||
| 121 | 121 | return $mock->reveal(); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param integer $code |
|
| 126 | + * @param string $message |
|
| 127 | + */ |
|
| 124 | 128 | private function createErrorMock($code, $message) |
| 125 | 129 | { |
| 126 | 130 | $mock = $this->prophesize(RpcErrorInterface::class); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $client = new RpcMockClient(); |
| 30 | 30 | $client->push( |
| 31 | 31 | $this->creatResponseMock(true, 5), |
| 32 | - function (RpcRequestInterface $request) { |
|
| 32 | + function(RpcRequestInterface $request) { |
|
| 33 | 33 | return $request->getMethod() === 'entity'; |
| 34 | 34 | } |
| 35 | 35 | ); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $client->push($this->creatResponseMock(false, null, $this->createErrorMock(-1, 'invalid'))); |
| 45 | 45 | $client->push( |
| 46 | 46 | $this->creatResponseMock(true, []), |
| 47 | - function (RpcRequestInterface $request) { |
|
| 47 | + function(RpcRequestInterface $request) { |
|
| 48 | 48 | return $request->getMethod() === 'entity'; |
| 49 | 49 | } |
| 50 | 50 | ); |