1 | <?php |
||
15 | class ClientExceptionHandlerTest extends \PHPUnit_Framework_TestCase |
||
16 | { |
||
17 | /** |
||
18 | * @param ClientException $clientException |
||
19 | * |
||
20 | * @covers LoLApi\Handler\ClientExceptionHandler::handleClientException |
||
21 | * |
||
22 | * @dataProvider getClientException |
||
23 | */ |
||
24 | public function testHandleClientExceptionWithoutRateLimit(ClientException $clientException) |
||
28 | |||
29 | /** |
||
30 | * @param string $headerRateLimit |
||
31 | * @param string $exceptionNamespace |
||
32 | * |
||
33 | * @covers LoLApi\Handler\ClientExceptionHandler::handleClientException |
||
34 | * @covers LoLApi\Handler\ClientExceptionHandler::handleRateLimitException |
||
35 | * |
||
36 | * @dataProvider dataProvider |
||
37 | */ |
||
38 | public function testHandleClientExceptionWithRateLimit($headerRateLimit, $exceptionNamespace) |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public function dataProvider() |
||
70 | |||
71 | /** |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getClientException() |
||
82 | } |
||
83 |