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::getMatchListApi |
||
23 | * @covers LoLApi\ApiClient::getMatchApi |
||
24 | * @covers LoLApi\ApiClient::getSummonerApi |
||
25 | * @covers LoLApi\ApiClient::getChampionApi |
||
26 | * @covers LoLApi\ApiClient::getFeaturedGamesApi |
||
27 | * @covers LoLApi\ApiClient::getGameApi |
||
28 | * @covers LoLApi\ApiClient::getStatsApi |
||
29 | * @covers LoLApi\ApiClient::getCurrentGameApi |
||
30 | * @covers LoLApi\ApiClient::getTeamApi |
||
31 | * @covers LoLApi\ApiClient::getStaticDataApi |
||
32 | * @covers LoLApi\ApiClient::getLeagueApi |
||
33 | * @covers LoLApi\ApiClient::getStatusApi |
||
34 | * @covers LoLApi\ApiClient::getChampionMasteryApi |
||
35 | */ |
||
36 | public function testApiGetters() |
||
55 | |||
56 | /** |
||
57 | * @covers LoLApi\ApiClient::getRegion |
||
58 | * @covers LoLApi\ApiClient::getApiKey |
||
59 | * @covers LoLApi\ApiClient::getHttpClient |
||
60 | * @covers LoLApi\ApiClient::getGlobalUrl |
||
61 | * @covers LoLApi\ApiClient::getStatusUrl |
||
62 | */ |
||
63 | public function testOtherGetters() |
||
73 | |||
74 | /** |
||
75 | * @covers LoLApi\ApiClient::setCacheProvider |
||
76 | * @covers LoLApi\ApiClient::getCacheProvider |
||
77 | */ |
||
78 | public function testCacheProvider() |
||
88 | |||
89 | /** |
||
90 | * @covers LoLApi\ApiClient::cacheApiResult |
||
91 | */ |
||
92 | public function testCacheApiResult() |
||
102 | |||
103 | /** |
||
104 | * @covers LoLApi\ApiClient::getBaseUrlWithPlatformId |
||
105 | */ |
||
106 | public function testGetBaseUrlWithRegion() |
||
115 | |||
116 | /** |
||
117 | * @covers LoLApi\ApiClient::getBaseUrlWithPlatformId |
||
118 | */ |
||
119 | public function testGetBaseUrlWithPlatformId() |
||
128 | |||
129 | /** |
||
130 | * @covers LoLApi\ApiClient::__construct |
||
131 | * |
||
132 | * @expectedException \LoLApi\Exception\InvalidRegionException |
||
133 | */ |
||
134 | public function testInvalidRegion() |
||
138 | |||
139 | /** |
||
140 | * @covers LoLApi\ApiClient::__construct |
||
141 | */ |
||
142 | public function testConstructWithClient() |
||
149 | |||
150 | /** |
||
151 | * @covers LoLApi\ApiClient::__construct |
||
152 | */ |
||
153 | public function testConstruct() |
||
159 | } |
||
160 |