public function testAddViolationPluralTranslationError() {
$this->translator
->expects($this
->once())
->method('transChoice')
->with('foo')
->will($this
->throwException(new \InvalidArgumentException()));
$this->translator
->expects($this
->once())
->method('trans')
->with('foo');
$this->context
->addViolation('foo', array(), null, 2);
}