@dataProvider getInvalidCurrencies
public function testInvalidCurrencies($currency) {
$constraint = new Currency(array(
'message' => 'myMessage',
));
$this->context
->expects($this
->once())
->method('addViolation')
->with('myMessage', array(
'{{ value }}' => $currency,
));
$this->validator
->validate($currency, $constraint);
}