public function CountryValidatorTest::testValidateUsingCountrySpecificLocale in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CountryValidatorTest.php, line 103
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
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();
}