Completed
Pull Request — master (#3)
by Pavel
03:50
created
Tests/RpcMockClientTest.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -121,6 +121,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.