@expectedException \RuntimeException
public function testAnIpv6WithOptionDisabledIpv6() {
if (!extension_loaded('sockets')) {
$this
->markTestSkipped('Only works when the socket extension is enabled');
}
if (defined('AF_INET6')) {
$this
->markTestSkipped('Only works when PHP is compiled with the option "disable-ipv6".');
}
IpUtils::checkIp('2a01:198:603:0:396e:4789:8e99:890f', '2a01:198:603:0::/65');
}