Exemplo n.º 1
0
 protected function getClientMock(HttpClientInterface $httpClient = null)
 {
     // if no httpClient isset use the default HttpClient mock
     if (!$httpClient) {
         $httpClient = $this->getHttpClientMock();
     }
     $client = new \Eloqua\Client($httpClient);
     $client->setHttpClient($httpClient);
     return $client;
 }