Example #1
0
 /**
  * @covers LoLApi\ApiClient::setCacheProvider
  * @covers LoLApi\ApiClient::getCacheProvider
  */
 public function testCacheProvider()
 {
     $apiClient = new ApiClient(ApiClient::REGION_EUW, 'test');
     $this->assertInstanceOf('Doctrine\\Common\\Cache\\VoidCache', $apiClient->getCacheProvider());
     $apiClient->setCacheProvider(new ArrayCache());
     $this->assertInstanceOf('Doctrine\\Common\\Cache\\ArrayCache', $apiClient->getCacheProvider());
 }