public function IpUtilsTest::testIpv6

@dataProvider testIpv6Provider

File

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

Class

IpUtilsTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIpv6($matches, $remoteAddr, $cidr) {
  if (!defined('AF_INET6')) {
    $this
      ->markTestSkipped('Only works when PHP is compiled without the option "disable-ipv6".');
  }
  $this
    ->assertSame($matches, IpUtils::checkIp($remoteAddr, $cidr));
}