You are here

public function IpValidatorTest::testValidIpsV4 in Plug 7

@dataProvider getValidIpsV4

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IpValidatorTest.php, line 65

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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