public function IpUtilsTest::testAnIpv6WithOptionDisabledIpv6 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/IpUtilsTest.php \Symfony\Component\HttpFoundation\Tests\IpUtilsTest::testAnIpv6WithOptionDisabledIpv6()
@expectedException \RuntimeException
File
- vendor/
symfony/ http-foundation/ Tests/ IpUtilsTest.php, line 72
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
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');
}