File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/ExecutionContextTest.php, line 241
Class
- ExecutionContextTest
Namespace
Symfony\Component\Validator\Tests
Code
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);
}