public function addMock($mock) { // Replace the current guzzle client with the mocked version $this->guzzle = $this->buildGuzzle($this->guzzle->getConfig()['base_uri'], $mock); }