public function IssnValidatorTest::testInvalidIssn in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/IssnValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IssnValidatorTest::testInvalidIssn()
@dataProvider getInvalidIssn
File
- vendor/
symfony/ validator/ Tests/ Constraints/ IssnValidatorTest.php, line 174
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidIssn($issn, $code) {
$constraint = new Issn(array(
'message' => 'myMessage',
));
$this->validator
->validate($issn, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', '"' . $issn . '"')
->setCode($code)
->assertRaised();
}