You are here

public function CurrencyValidatorTest::testInvalidCurrencies in Plug 7

@dataProvider getInvalidCurrencies

File

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

Class

CurrencyValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidCurrencies($currency) {
  $constraint = new Currency(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate($currency, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', '"' . $currency . '"')
    ->assertRaised();
}