public function LanguageValidatorTest::testValidateUsingCountrySpecificLocale in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ LanguageValidatorTest.php, line 103
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidateUsingCountrySpecificLocale() {
\Locale::setDefault('fr_FR');
$existingLanguage = 'en';
$this->validator
->validate($existingLanguage, new Language(array(
'message' => 'aMessage',
)));
$this
->assertNoViolation();
}