protected function AbstractConstraintValidatorTest::createViolation in Plug 7
Parameters
mixed $message:
array $parameters:
string $propertyPath:
string $invalidValue:
null $plural:
null $code:
Return value
Deprecated
To be removed in Symfony 3.0. Use {@link buildViolation()} instead.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractConstraintValidatorTest.php, line 180
Class
- AbstractConstraintValidatorTest
- @since 2.5.3
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
protected function createViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null) {
return new ConstraintViolation(null, $message, $parameters, $this->root, $propertyPath, $invalidValue, $plural, $code, $this->constraint);
}