'message' => 'testMessage',
]);
if (null !==
$versions) { $constraint->versions =
$versions;
} $this->validator->
validate($uuid,
$constraint);
$this->
buildViolation('testMessage'
) ->
setParameter('{{ value }}', '"'.
$uuid.'"'
) ->
setCode($code) ->
assertRaised();
} public static function getInvalidStrictUuids() { return [ ['216fff40-98d9-11e3-a5e2_0800200c9a66', Uuid::INVALID_CHARACTERS_ERROR
],
['216gff40-98d9-11e3-a5e2-0800200c9a66', Uuid::INVALID_CHARACTERS_ERROR
],
['216Gff40-98d9-11e3-a5e2-0800200c9a66', Uuid::INVALID_CHARACTERS_ERROR
],
['216fff40-98d9-11e3-a5e-20800200c9a66', Uuid::INVALID_HYPHEN_PLACEMENT_ERROR
],
['216f-ff40-98d9-11e3-a5e2-0800200c9a66', Uuid::INVALID_HYPHEN_PLACEMENT_ERROR
],
[