/**
* Sets up the fixture, for example, open a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->client = new HttpClient($this->subdomain, $this->username, $this->scheme, $this->hostname, $this->port);
$authOptions['username'] = $this->username;
if ($this->authStrategy === 'basic') {
$authOptions['token'] = $this->token;
} else {
$authOptions['token'] = $this->oAuthToken;
}
$this->client->setAuth($this->authStrategy, $authOptions);
}