LeagueWrap\Client::addMock PHP Method

addMock() public method

Attempt to add a mocked handler stack to guzzle, primary usage is to be able to test this code.
public addMock ( GuzzleHttp\HandlerStack $mock ) : void
$mock GuzzleHttp\HandlerStack
return void
    public function addMock($mock)
    {
        // Replace the current guzzle client with the mocked version
        $this->guzzle = $this->buildGuzzle($this->guzzle->getConfig()['base_uri'], $mock);
    }