| @@ 112-120 (lines=9) @@ | ||
| 109 | $this->assertEquals(3, count($responses)); |
|
| 110 | ||
| 111 | $responseA = $responseC = $responseD = null; |
|
| 112 | foreach ($responses as $response) { |
|
| 113 | if ($response->getRpcId() === $idA) { |
|
| 114 | $responseA = $response; |
|
| 115 | } elseif ($response->getRpcId() === $idC) { |
|
| 116 | $responseC = $response; |
|
| 117 | } elseif ($response->getRpcId() === $idD) { |
|
| 118 | $responseD = $response; |
|
| 119 | } |
|
| 120 | } |
|
| 121 | if (is_null($responseA) || is_null($responseC) || is_null($responseD)) { |
|
| 122 | $this->fail('Invalid responses'); |
|
| 123 | } |
|
| @@ 183-191 (lines=9) @@ | ||
| 180 | $this->assertEquals(3, count($responses)); |
|
| 181 | ||
| 182 | $responseA = $responseC = $responseD = null; |
|
| 183 | foreach ($responses as $response) { |
|
| 184 | if ($response->getRpcId() === $idA) { |
|
| 185 | $responseA = $response; |
|
| 186 | } elseif ($response->getRpcId() === $idC) { |
|
| 187 | $responseC = $response; |
|
| 188 | } elseif ($response->getRpcId() === $idD) { |
|
| 189 | $responseD = $response; |
|
| 190 | } |
|
| 191 | } |
|
| 192 | if (is_null($responseA) || is_null($responseC) || is_null($responseD)) { |
|
| 193 | $this->fail('Invalid responses'); |
|
| 194 | } |
|