protected function mockApiResponses($responses = [])
{
if (empty($responses)) {
return;
} elseif (!is_array($responses)) {
$responses = [$responses];
}
$history = Middleware::history($this->mockedTransactionsContainer);
$mock = new MockHandler($responses);
$handler = HandlerStack::create($mock);
$handler->push($history);
$this->client->guzzle = new Client(['handler' => $handler]);
}