1 | <?php |
||
19 | abstract class AbstractApiTest extends \PHPUnit_Framework_TestCase |
||
20 | { |
||
21 | const REGION = 'euw'; |
||
22 | const API_KEY = 'apiKey'; |
||
23 | |||
24 | /** |
||
25 | * @var ApiClient |
||
26 | */ |
||
27 | protected $apiClient; |
||
28 | |||
29 | /** |
||
30 | * Initiate ApiClient |
||
31 | */ |
||
32 | public function setUp() |
||
36 | |||
37 | /** |
||
38 | * @param AdapterInterface $cache |
||
39 | * @param Client $httpClient |
||
40 | * |
||
41 | * @return ApiClient |
||
42 | */ |
||
43 | protected function getApiClient(AdapterInterface $cache, Client $httpClient) |
||
47 | |||
48 | /** |
||
49 | * @return Client |
||
50 | */ |
||
51 | protected function getSuccessfulHttpClient() |
||
61 | |||
62 | /** |
||
63 | * @return Client |
||
64 | */ |
||
65 | protected function getRateLimitHttpClient() |
||
83 | } |
||
84 |