public function LegacyExecutionContextTest::testAddViolationPluralTranslationError in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/LegacyExecutionContextTest.php \Symfony\Component\Validator\Tests\LegacyExecutionContextTest::testAddViolationPluralTranslationError()
File
- vendor/
symfony/ validator/ Tests/ LegacyExecutionContextTest.php, line 249
Class
- LegacyExecutionContextTest
- @group legacy
Namespace
Symfony\Component\Validator\TestsCode
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);
}