public function testSendRequestErrorResponse()
{
// Mock response
$mockResponse = array('error' => array('type' => 1, 'description' => 'Some kind of error'));
// Stub adapter methods
$this->stubMockAdapterResponseMethods($mockResponse, 200, 'application/json');
// Set mock adapter
$this->transport->setAdapter($this->mockAdapter);
// Send request
$this->transport->sendRequest('dummy', 'GET');
}