Esempio n. 1
0
 /**
  * Sends a DELETE request with JSON-encoded parameters.
  *
  * @param string $path
  *   The request path.
  *
  * @param array $parameters
  *   The POST parameters to be JSON encoded.
  *
  * @param array $requestHeaders
  *   The request headers.
  */
 protected function delete($path, array $parameters = array(), $requestHeaders = array())
 {
     $response = $this->client->getHttpClient()->delete($path, $this->createJsonBody($parameters), $requestHeaders);
     return ResponseMediator::getContent($response);
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function shouldPassHttpClientInterfaceToConstructor()
 {
     $client = new Client($this->getHttpClientMock());
     $this->assertInstanceOf('Eloqua\\HttpClient\\HttpClientInterface', $client->getHttpClient());
 }