Ejemplo n.º 1
0
 /**
  * @covers LoLApi\ApiClient::__construct
  */
 public function testConstruct()
 {
     $apiClient = new ApiClient(ApiClient::REGION_EUW, 'test', new VoidCache());
     $this->assertInstanceOf('GuzzleHttp\\Client', $apiClient->getHttpClient());
 }
Ejemplo n.º 2
0
 /**
  * @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);
 }