You are here

public function IpValidatorTest::getValidIpsV6 in Plug 7

1 call to IpValidatorTest::getValidIpsV6()
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 100

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getValidIpsV6() {
  return array(
    array(
      '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
    ),
    array(
      '2001:0DB8:85A3:0000:0000:8A2E:0370:7334',
    ),
    array(
      '2001:0Db8:85a3:0000:0000:8A2e:0370:7334',
    ),
    array(
      'fdfe:dcba:9876:ffff:fdc6:c46b:bb8f:7d4c',
    ),
    array(
      'fdc6:c46b:bb8f:7d4c:fdc6:c46b:bb8f:7d4c',
    ),
    array(
      'fdc6:c46b:bb8f:7d4c:0000:8a2e:0370:7334',
    ),
    array(
      'fe80:0000:0000:0000:0202:b3ff:fe1e:8329',
    ),
    array(
      'fe80:0:0:0:202:b3ff:fe1e:8329',
    ),
    array(
      'fe80::202:b3ff:fe1e:8329',
    ),
    array(
      '0:0:0:0:0:0:0:0',
    ),
    array(
      '::',
    ),
    array(
      '0::',
    ),
    array(
      '::0',
    ),
    array(
      '0::0',
    ),
    // IPv4 mapped to IPv6
    array(
      '2001:0db8:85a3:0000:0000:8a2e:0.0.0.0',
    ),
    array(
      '::0.0.0.0',
    ),
    array(
      '::255.255.255.255',
    ),
    array(
      '::123.45.67.178',
    ),
  );
}