You are here

public function CurrencyValidatorTest::testValidCurrenciesWithCountrySpecificLocale in Plug 7

@dataProvider getValidCurrencies

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php, line 73

Class

CurrencyValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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