| @@ 40-48 (lines=9) @@ | ||
| 37 | /** |
|
| 38 | * @expectedException \InvalidArgumentException |
|
| 39 | */ |
|
| 40 | public function testIfApiKeyisNotSet() |
|
| 41 | { |
|
| 42 | $apiKey = ''; |
|
| 43 | $url = 'blacklistIpCheckUr'; |
|
| 44 | ||
| 45 | $ip = '198.51.100.42'; |
|
| 46 | $service = new AzineMailgunHetrixtoolsService($apiKey, $url); |
|
| 47 | $service->checkIpAddressInBlacklist($ip); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @expectedException \InvalidArgumentException |
|
| @@ 53-61 (lines=9) @@ | ||
| 50 | /** |
|
| 51 | * @expectedException \InvalidArgumentException |
|
| 52 | */ |
|
| 53 | public function testIfEmptyIpisGiven() |
|
| 54 | { |
|
| 55 | $apiKey = 'testApiKey'; |
|
| 56 | $url = 'blacklistIpCheckUr'; |
|
| 57 | $ip = ''; |
|
| 58 | ||
| 59 | $service = new AzineMailgunHetrixtoolsService($apiKey, $url); |
|
| 60 | $service->checkIpAddressInBlacklist($ip); |
|
| 61 | } |
|
| 62 | /** |
|
| 63 | * @expectedException \InvalidArgumentException |
|
| 64 | */ |
|