1 | <?php |
||
16 | class ApiClientTest extends \PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | const REGION = 'euw'; |
||
19 | const API_KEY = 'test'; |
||
20 | |||
21 | /** |
||
22 | * @covers LoLApi\ApiClient::getMatchApi |
||
23 | * @covers LoLApi\ApiClient::getSummonerApi |
||
24 | * @covers LoLApi\ApiClient::getChampionApi |
||
25 | * @covers LoLApi\ApiClient::getFeaturedGamesApi |
||
26 | * @covers LoLApi\ApiClient::getSpectatorApi |
||
27 | * @covers LoLApi\ApiClient::getStaticDataApi |
||
28 | * @covers LoLApi\ApiClient::getLeagueApi |
||
29 | * @covers LoLApi\ApiClient::getStatusApi |
||
30 | * @covers LoLApi\ApiClient::getChampionMasteryApi |
||
31 | */ |
||
32 | public function testApiGetters() |
||
47 | |||
48 | /** |
||
49 | * @covers LoLApi\ApiClient::getRegion |
||
50 | * @covers LoLApi\ApiClient::getApiKey |
||
51 | * @covers LoLApi\ApiClient::getHttpClient |
||
52 | * @covers LoLApi\ApiClient::getGlobalUrl |
||
53 | */ |
||
54 | public function testOtherGetters() |
||
62 | |||
63 | /** |
||
64 | * @covers LoLApi\ApiClient::setCacheProvider |
||
65 | * @covers LoLApi\ApiClient::getCacheProvider |
||
66 | */ |
||
67 | public function testCacheProvider() |
||
77 | |||
78 | /** |
||
79 | * @covers LoLApi\ApiClient::cacheApiResult |
||
80 | */ |
||
81 | public function testCacheApiResult() |
||
90 | |||
91 | /** |
||
92 | * @covers LoLApi\ApiClient::getBaseUrlWithPlatformId |
||
93 | */ |
||
94 | public function testGetBaseUrlWithPlatformId() |
||
103 | |||
104 | /** |
||
105 | * @covers LoLApi\ApiClient::__construct |
||
106 | * |
||
107 | * @expectedException \LoLApi\Exception\InvalidRegionException |
||
108 | */ |
||
109 | public function testInvalidRegion() |
||
113 | |||
114 | /** |
||
115 | * @covers LoLApi\ApiClient::__construct |
||
116 | */ |
||
117 | public function testConstructWithClient() |
||
124 | |||
125 | /** |
||
126 | * @covers LoLApi\ApiClient::__construct |
||
127 | */ |
||
128 | public function testConstruct() |
||
134 | } |
||
135 |