public function UuidValidatorTest::testInvalidStrictUuids in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ConstraintsCode
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();
}