You are here

public function CurrencyValidatorTest::testValidCurrenciesWithCountrySpecificLocale in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/CurrencyValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\CurrencyValidatorTest::testValidCurrenciesWithCountrySpecificLocale()

@dataProvider getValidCurrencies

File

vendor/symfony/validator/Tests/Constraints/CurrencyValidatorTest.php, line 66

Class

CurrencyValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidCurrenciesWithCountrySpecificLocale($currency) {
  IntlTestHelper::requireFullIntl($this);
  \Locale::setDefault('en_GB');
  $this->validator
    ->validate($currency, new Currency());
  $this
    ->assertNoViolation();
}