You are here

public function LanguageValidatorTest::testValidateUsingCountrySpecificLocale in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php, line 103

Class

LanguageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidateUsingCountrySpecificLocale() {
  \Locale::setDefault('fr_FR');
  $existingLanguage = 'en';
  $this->validator
    ->validate($existingLanguage, new Language(array(
    'message' => 'aMessage',
  )));
  $this
    ->assertNoViolation();
}