public function LanguageValidatorTest::testValidateUsingCountrySpecificLocale in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/LanguageValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\LanguageValidatorTest::testValidateUsingCountrySpecificLocale()
File
- vendor/
symfony/ validator/ Tests/ Constraints/ LanguageValidatorTest.php, line 96
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidateUsingCountrySpecificLocale() {
IntlTestHelper::requireFullIntl($this);
\Locale::setDefault('fr_FR');
$existingLanguage = 'en';
$this->validator
->validate($existingLanguage, new Language(array(
'message' => 'aMessage',
)));
$this
->assertNoViolation();
}