You are here

public function IpValidatorTest::testValidIpsAll in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/IpValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IpValidatorTest::testValidIpsAll()

@dataProvider getValidIpsAll

File

vendor/symfony/validator/Tests/Constraints/IpValidatorTest.php, line 128

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidIpsAll($ip) {
  $this->validator
    ->validate($ip, new Ip(array(
    'version' => Ip::ALL,
  )));
  $this
    ->assertNoViolation();
}