You are here

public function UuidValidatorTest::getInvalidNonStrictUuids in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/UuidValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\UuidValidatorTest::getInvalidNonStrictUuids()

File

vendor/symfony/validator/Tests/Constraints/UuidValidatorTest.php, line 199

Class

UuidValidatorTest
@author Colin O'Dell <colinodell@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidNonStrictUuids() {
  return array(
    array(
      '216fff40-98d9-11e3-a5e2_0800200c9a66',
      Uuid::INVALID_CHARACTERS_ERROR,
    ),
    array(
      '216gff40-98d9-11e3-a5e2-0800200c9a66',
      Uuid::INVALID_CHARACTERS_ERROR,
    ),
    array(
      '216Gff40-98d9-11e3-a5e2-0800200c9a66',
      Uuid::INVALID_CHARACTERS_ERROR,
    ),
    array(
      '216fff40-98d9-11e3-a5e2_0800200c9a6',
      Uuid::INVALID_CHARACTERS_ERROR,
    ),
    array(
      '216fff40-98d9-11e3-a5e-20800200c9a66',
      Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
    ),
    array(
      '216fff40-98d9-11e3-a5e2-0800200c9a6',
      Uuid::TOO_SHORT_ERROR,
    ),
    array(
      '216fff40-98d9-11e3-a5e2-0800200c9a666',
      Uuid::TOO_LONG_ERROR,
    ),
  );
}