You are here

public function IpValidatorTest::getValidIpsV4 in Plug 7

1 call to IpValidatorTest::getValidIpsV4()
IpValidatorTest::getValidIpsAll in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IpValidatorTest.php

File

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

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getValidIpsV4() {
  return array(
    array(
      '0.0.0.0',
    ),
    array(
      '10.0.0.0',
    ),
    array(
      '123.45.67.178',
    ),
    array(
      '172.16.0.0',
    ),
    array(
      '192.168.1.0',
    ),
    array(
      '224.0.0.1',
    ),
    array(
      '255.255.255.255',
    ),
    array(
      '127.0.0.0',
    ),
  );
}