You are here

public function UuidValidatorTest::getValidStrictUuids in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php, line 71

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getValidStrictUuids() {
  return array(
    array(
      '216fff40-98d9-11e3-a5e2-0800200c9a66',
    ),
    // Version 1 UUID in lowercase
    array(
      '216fff40-98d9-11e3-a5e2-0800200c9a66',
      array(
        Uuid::V1_MAC,
      ),
    ),
    array(
      '216FFF40-98D9-11E3-A5E2-0800200C9A66',
    ),
    // Version 1 UUID in UPPERCASE
    array(
      '456daefb-5aa6-41b5-8dbc-068b05a8b201',
    ),
    // Version 4 UUID in lowercase
    array(
      '456daEFb-5AA6-41B5-8DBC-068B05A8B201',
    ),
    // Version 4 UUID in mixed case
    array(
      '456daEFb-5AA6-41B5-8DBC-068B05A8B201',
      array(
        Uuid::V4_RANDOM,
      ),
    ),
  );
}