+ 'blacklist' => [ 'dnsbl.test' ],
+ 'ip' => '127.0.0.1',
+ 'dnsblQuery' => '1.0.0.127.dnsbl.test',
+ 'dnsblResponse' => $dnsblFound,
+ 'whitelist' => [],
+ 'checkWhitelist' => false,
+ ],
+ true,
+ ],
+ 'IP is blacklisted; blacklist has key' => [
+ [
+ 'blacklist' => [ [ 'dnsbl.test', 'key' ] ],
+ 'ip' => '127.0.0.1',
+ 'dnsblQuery' => 'key.1.0.0.127.dnsbl.test',
+ 'dnsblResponse' => $dnsblFound,
+ 'whitelist' => [],
+ 'checkWhitelist' => false,
+ ],
+ true,
+ ],
+ 'IP is blacklisted; blacklist is array' => [
+ [
+ 'blacklist' => [ [ 'dnsbl.test' ] ],
+ 'ip' => '127.0.0.1',
+ 'dnsblQuery' => '1.0.0.127.dnsbl.test',
+ 'dnsblResponse' => $dnsblFound,
+ 'whitelist' => [],
+ 'checkWhitelist' => false,