protected function setupHttpClient()
 {
     $this->httpClient = new Client();
     if ($this->getConfig()->graphBaseDomain) {
         $this->httpClient->setDefaultGraphBaseDomain($this->getConfig()->graphBaseDomain);
     }
     if ($this->getConfig()->skipSslVerification) {
         /** @var CurlAdapter $adapter */
         $adapter = $this->httpClient->getAdapter();
         $adapter->getOpts()->offsetSet(CURLOPT_SSL_VERIFYHOST, false);
         $adapter->getOpts()->offsetSet(CURLOPT_SSL_VERIFYPEER, false);
     }
 }
 public function testAdapter()
 {
     $client = new Client();
     $adapter = $this->createAdapterMock();
     $client->setAdapter($adapter);
     $this->assertTrue($client->getAdapter() instanceof AdapterInterface);
     $this->assertTrue($adapter === $client->getAdapter());
     // Default initialization
     $client = new Client();
     $this->assertTrue($client->getAdapter() instanceof CurlAdapter);
 }