public function IpUtilsTest::testAnIpv6WithOptionDisabledIpv6

@expectedException \RuntimeException

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/IpUtilsTest.php, line 69

Class

IpUtilsTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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');
}