public function IpUtilsTest::testIpv6 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::testIpv6()
@dataProvider testIpv6Provider
File
- vendor/
symfony/ http-foundation/ Tests/ IpUtilsTest.php, line 46
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
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));
}