public function testGetResponse()
 {
     $config = new CloseIoConfig();
     $config->setApiKey('testkey');
     $closeIoApiWrapper = new CloseIoApiWrapper($config);
     $curl = new Curl();
     $request = new CloseIoRequest($closeIoApiWrapper->getApiHandler());
     $request->setUrl('www.google.com');
     $request->setMethod(Curl::METHOD_GET);
     $response = $curl->getResponse($request);
     $this->assertEquals($response->getReturnCode(), '200');
     $this->assertNotEmpty($response->getRawData());
     $this->assertFalse($response->hasErrors());
 }
 /**
  * @param CloseIoRequest $request
  * @return CloseIoResponse
  * @throws UrlNotSetException
  */
 protected function triggerPost(CloseIoRequest $request)
 {
     $finalRequest = $this->finalizeRequest($request, Curl::METHOD_POST);
     return $this->curl->getResponse($finalRequest);
 }