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