You are here

public function CountryValidatorTest::testValidateUsingCountrySpecificLocale in Plug 7

File

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

Class

CountryValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidateUsingCountrySpecificLocale() {

  // in order to test with "en_GB"
  IntlTestHelper::requireFullIntl($this);
  \Locale::setDefault('en_GB');
  $existingCountry = 'GB';
  $this->validator
    ->validate($existingCountry, new Country());
  $this
    ->assertNoViolation();
}