public function UuidValidatorTest::getInvalidStrictUuids in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ UuidValidatorTest.php, line 104
Class
- UuidValidatorTest
- @author Colin O'Dell <colinodell@gmail.com>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function getInvalidStrictUuids() {
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-a5e-20800200c9a66',
Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
),
array(
'216f-ff40-98d9-11e3-a5e2-0800200c9a66',
Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
),
array(
'216fff40-98d9-11e3-a5e2-0800-200c9a66',
Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
),
array(
'216fff40-98d9-11e3-a5e2-0800200c-9a66',
Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
),
array(
'216fff40-98d9-11e3-a5e20800200c9a66',
Uuid::INVALID_HYPHEN_PLACEMENT_ERROR,
),
array(
'216fff4098d911e3a5e20800200c9a66',
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,
),
array(
'216fff40-98d9-01e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-61e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-71e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-81e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-91e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-a1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-b1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-c1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-d1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-e1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-f1e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
),
array(
'216fff40-98d9-11e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
array(
Uuid::V2_DCE,
Uuid::V3_MD5,
Uuid::V4_RANDOM,
Uuid::V5_SHA1,
),
),
array(
'216fff40-98d9-21e3-a5e2-0800200c9a66',
Uuid::INVALID_VERSION_ERROR,
array(
Uuid::V1_MAC,
Uuid::V3_MD5,
Uuid::V4_RANDOM,
Uuid::V5_SHA1,
),
),
array(
'216fff40-98d9-11e3-05e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-15e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-25e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-35e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-45e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-55e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-65e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-75e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-c5e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-d5e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-e5e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
array(
'216fff40-98d9-11e3-f5e2-0800200c9a66',
Uuid::INVALID_VARIANT_ERROR,
),
// Non-standard UUID allowed by some other systems
array(
'{216fff40-98d9-11e3-a5e2-0800200c9a66}',
Uuid::INVALID_CHARACTERS_ERROR,
),
array(
'[216fff40-98d9-11e3-a5e2-0800200c9a66]',
Uuid::INVALID_CHARACTERS_ERROR,
),
);
}