| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | protected function makeIdentityClientResponse(array $responseData) |
||
| 19 | { |
||
| 20 | $mockedHttpClient = $this->getMockBuilder(\SocialConnect\Common\Http\Client\Curl::class) |
||
| 21 | ->disableProxyingToOriginalMethods() |
||
| 22 | ->getMock(); |
||
| 23 | |||
| 24 | $response = new \SocialConnect\Common\Http\Response( |
||
| 25 | 200, |
||
| 26 | json_encode( |
||
| 27 | $responseData |
||
| 28 | ), |
||
| 29 | [] |
||
| 30 | ); |
||
| 31 | |||
| 32 | $mockedHttpClient->expects($this->once()) |
||
| 33 | ->method('request') |
||
| 34 | ->willReturn($response); |
||
| 35 | |||
| 36 | return $mockedHttpClient; |
||
| 37 | } |
||
| 38 | |||
| 55 |