You are here

protected function DummyAcquiaLiftHttpClient::logRequest in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 tests/acquia_lift.test_classes.inc \DummyAcquiaLiftHttpClient::logRequest()

Logs the request internally.

Parameters

$type: The type of request, e.g. 'get'

$uri: The uri of the request.

$headers: The array of headers.

$options: An array of options

null $body: (optional) The body of the request.

5 calls to DummyAcquiaLiftHttpClient::logRequest()
DummyAcquiaLiftHttpClient::delete in tests/acquia_lift.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::delete().
DummyAcquiaLiftHttpClient::get in tests/acquia_lift.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::get().
DummyAcquiaLiftHttpClient::post in tests/acquia_lift.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::post().
DummyAcquiaLiftHttpClient::put in tests/acquia_lift.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::put().
DummyALProfilesHttpClient::get in acquia_lift_profiles/tests/acquia_lift_profiles.test_classes.inc
Implements AcquiaLiftDrupalHttpClientInterface::get().

File

tests/acquia_lift.test_classes.inc, line 95
Provides test classes for Acquia Lift

Class

DummyAcquiaLiftHttpClient
Classes used for testing.

Code

protected function logRequest($type, $uri, $headers, $options, $body = NULL) {
  self::$requests_received[] = array(
    'type' => $type,
    'uri' => $uri,
    'headers' => $headers,
    'options' => $options,
    'body' => $body,
  );
}