| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testIfInvalidIpisGiven() |
||
| 27 | { |
||
| 28 | $apiKey = 'testApiKey'; |
||
| 29 | $url = 'blacklistIpCheckUr'; |
||
| 30 | |||
| 31 | //Test with empty ip |
||
| 32 | $ip = ''; |
||
| 33 | $service = new AzineMailgunHetrixtoolsService($apiKey, $url); |
||
| 34 | $service->checkIpAddressInBlacklist($ip); |
||
| 35 | |||
| 36 | //Test with invalid ip |
||
| 37 | |||
| 38 | $ip = 'invalidIpAddress'; |
||
| 39 | $service->checkIpAddressInBlacklist($ip); |
||
| 40 | } |
||
| 41 | } |