You are here

public function IpValidatorTest::getInvalidIpsV4 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::getInvalidIpsV4()
1 call to IpValidatorTest::getInvalidIpsV4()
IpValidatorTest::getInvalidIpsAll in vendor/symfony/validator/Tests/Constraints/IpValidatorTest.php

File

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

Class

IpValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidIpsV4() {
  return array(
    array(
      '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',
    ),
    array(
      '-1.0.0.0',
    ),
    array(
      'foobar',
    ),
  );
}