| Conditions | 3 |
| Paths | 4 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | protected function getAbstractProviderMock(ClientInterface $httpClient = null, SessionInterface $session = null) |
||
| 21 | { |
||
| 22 | if (!$httpClient) { |
||
| 23 | $httpClient = $this->getMockBuilder(\SocialConnect\Common\Http\Client\Curl::class) |
||
| 24 | ->disableOriginalConstructor() |
||
| 25 | ->disableProxyingToOriginalMethods() |
||
| 26 | ->getMock(); |
||
| 27 | } |
||
| 28 | |||
| 29 | if (!$session) { |
||
| 30 | $session = $this->getMockBuilder(\SocialConnect\Provider\Session\Session::class) |
||
| 31 | ->disableOriginalConstructor() |
||
| 32 | ->disableProxyingToOriginalMethods() |
||
| 33 | ->getMock(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return new ProviderMock( |
||
| 37 | $httpClient, |
||
| 38 | $session, |
||
| 39 | new Consumer( |
||
| 40 | 'unknown', |
||
| 41 | 'unkwown' |
||
| 42 | ), |
||
| 43 | [ |
||
| 44 | 'redirectUri' => 'http://localhost:8000/${provider}/' |
||
| 45 | ] |
||
| 54 |