You are here

public function DummyAcquiaLiftHttpClient::__construct in Acquia Lift Connector 7

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

Constructor

Parameters

bool $broken: Whether or not this http client should just get 500 errors.

array $data: An array of dummy data that can be returned in responses.

File

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

Class

DummyAcquiaLiftHttpClient
Classes used for testing.

Code

public function __construct($broken = FALSE, $data = array(), $simulate_client_side_breakage = FALSE) {
  $this->broken = $broken;
  $this->breakageType = $simulate_client_side_breakage ? 'client' : 'server';
  $this->data += $data;
}