protected function AbstractConstraintValidatorTest::assertViolation in Plug 7
Parameters
mixed $message:
array $parameters:
string $propertyPath:
string $invalidValue:
null $plural:
null $code:
Deprecated
To be removed in Symfony 3.0. Use {@link buildViolation()} instead.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractConstraintValidatorTest.php, line 368
Class
- AbstractConstraintValidatorTest
- @since 2.5.3
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
protected function assertViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null) {
$this
->buildViolation($message)
->setParameters($parameters)
->atPath($propertyPath)
->setInvalidValue($invalidValue)
->setCode($code)
->setPlural($plural)
->assertRaised();
}