You are here

public function UuidValidatorTest::testInvalidStrictUuids in Zircon Profile 8.0

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

@dataProvider getInvalidStrictUuids

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidStrictUuids($uuid, $code, $versions = null) {
  $constraint = new Uuid(array(
    'message' => 'testMessage',
  ));
  if (null !== $versions) {
    $constraint->versions = $versions;
  }
  $this->validator
    ->validate($uuid, $constraint);
  $this
    ->buildViolation('testMessage')
    ->setParameter('{{ value }}', '"' . $uuid . '"')
    ->setCode($code)
    ->assertRaised();
}