1 | <?php |
||
12 | class AuthClientSpec extends ObjectBehavior |
||
13 | { |
||
14 | const LOGIN_ENDPOINT = 'https://api.yproximite.fr/login_check'; |
||
15 | |||
16 | function it_is_initializable() |
||
20 | |||
21 | function let(HttpClient $httpClient, MessageFactory $messageFactory) |
||
25 | |||
26 | function it_should_throw_authentication_exception_if_api_key_is_invalid() |
||
31 | |||
32 | function it_should_throw_authentication_exception_if_response_is_invalid_json() |
||
37 | |||
38 | function it_should_auth_if_api_key_is_valid(MessageFactory $messageFactory, RequestInterface $request) |
||
45 | } |
||
46 |