public function UuidValidatorTest::testInvalidStrictUuids in Plug 7
@dataProvider getInvalidStrictUuids
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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();
}