public function CurrencyValidatorTest::testInvalidCurrencies in Plug 7
@dataProvider getInvalidCurrencies
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CurrencyValidatorTest.php, line 96
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidCurrencies($currency) {
$constraint = new Currency(array(
'message' => 'myMessage',
));
$this->validator
->validate($currency, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', '"' . $currency . '"')
->assertRaised();
}