You are here

public function IpUtilsTest::testIpv4 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/IpUtilsTest.php \Symfony\Component\HttpFoundation\Tests\IpUtilsTest::testIpv4()

@dataProvider testIpv4Provider

File

vendor/symfony/http-foundation/Tests/IpUtilsTest.php, line 21

Class

IpUtilsTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIpv4($matches, $remoteAddr, $cidr) {
  $this
    ->assertSame($matches, IpUtils::checkIp($remoteAddr, $cidr));
}