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