/** * @covers LoLApi\ApiClient::__construct */ public function testConstruct() { $apiClient = new ApiClient(ApiClient::REGION_EUW, 'test', new VoidCache()); $this->assertInstanceOf('GuzzleHttp\\Client', $apiClient->getHttpClient()); }
/** * @param string $url * @param array $queryParameters * @param bool $global * * @return string */ protected function buildUri($url, array $queryParameters, $global = false) { $baseUrl = $global ? $this->apiClient->getGlobalUrl() : $this->apiClient->getBaseUrlWithRegion(); return $baseUrl . $url . '?' . http_build_query($queryParameters); }