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::getCurrentGameApi |
||
28 | * @covers LoLApi\ApiClient::getStaticDataApi |
||
29 | * @covers LoLApi\ApiClient::getLeagueApi |
||
30 | * @covers LoLApi\ApiClient::getStatusApi |
||
31 | * @covers LoLApi\ApiClient::getChampionMasteryApi |
||
32 | */ |
||
33 | public function testApiGetters() |
||
50 | |||
51 | /** |
||
52 | * @covers LoLApi\ApiClient::getRegion |
||
53 | * @covers LoLApi\ApiClient::getApiKey |
||
54 | * @covers LoLApi\ApiClient::getHttpClient |
||
55 | * @covers LoLApi\ApiClient::getGlobalUrl |
||
56 | */ |
||
57 | public function testOtherGetters() |
||
65 | |||
66 | /** |
||
67 | * @covers LoLApi\ApiClient::setCacheProvider |
||
68 | * @covers LoLApi\ApiClient::getCacheProvider |
||
69 | */ |
||
70 | public function testCacheProvider() |
||
80 | |||
81 | /** |
||
82 | * @covers LoLApi\ApiClient::cacheApiResult |
||
83 | */ |
||
84 | public function testCacheApiResult() |
||
94 | |||
95 | /** |
||
96 | * @covers LoLApi\ApiClient::getBaseUrlWithPlatformId |
||
97 | */ |
||
98 | public function testGetBaseUrlWithRegion() |
||
107 | |||
108 | /** |
||
109 | * @covers LoLApi\ApiClient::getBaseUrlWithPlatformId |
||
110 | */ |
||
111 | public function testGetBaseUrlWithPlatformId() |
||
120 | |||
121 | /** |
||
122 | * @covers LoLApi\ApiClient::__construct |
||
123 | * |
||
124 | * @expectedException \LoLApi\Exception\InvalidRegionException |
||
125 | */ |
||
126 | public function testInvalidRegion() |
||
130 | |||
131 | /** |
||
132 | * @covers LoLApi\ApiClient::__construct |
||
133 | */ |
||
134 | public function testConstructWithClient() |
||
141 | |||
142 | /** |
||
143 | * @covers LoLApi\ApiClient::__construct |
||
144 | */ |
||
145 | public function testConstruct() |
||
151 | } |
||
152 |