You are here

public function UuidValidatorTest::testValidStrictUuids 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::testValidStrictUuids()

@dataProvider getValidStrictUuids

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidStrictUuids($uuid, $versions = null) {
  $constraint = new Uuid();
  if (null !== $versions) {
    $constraint->versions = $versions;
  }
  $this->validator
    ->validate($uuid, $constraint);
  $this
    ->assertNoViolation();
}