You are here

public function LanguageValidatorTest::testValidateUsingCountrySpecificLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

LanguageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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