You are here

public function IpValidatorTest::getInvalidIpsV6 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::getInvalidIpsV6()
2 calls to IpValidatorTest::getInvalidIpsV6()
IpValidatorTest::getInvalidIpsAll in vendor/symfony/validator/Tests/Constraints/IpValidatorTest.php
IpValidatorTest::getInvalidReservedIpsV6 in vendor/symfony/validator/Tests/Constraints/IpValidatorTest.php

File

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

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidIpsV6() {
  return array(
    array(
      'z001:0db8:85a3:0000:0000:8a2e:0370:7334',
    ),
    array(
      'fe80',
    ),
    array(
      'fe80:8329',
    ),
    array(
      'fe80:::202:b3ff:fe1e:8329',
    ),
    array(
      'fe80::202:b3ff::fe1e:8329',
    ),
    // IPv4 mapped to IPv6
    array(
      '2001:0db8:85a3:0000:0000:8a2e:0370:0.0.0.0',
    ),
    array(
      '::0.0',
    ),
    array(
      '::0.0.0',
    ),
    array(
      '::256.0.0.0',
    ),
    array(
      '::0.256.0.0',
    ),
    array(
      '::0.0.256.0',
    ),
    array(
      '::0.0.0.256',
    ),
  );
}