ConstraintViolationAssertion

class ConstraintViolationAssertion

Methods

__construct(ExecutionContextInterface $context, $message, Constraint $constraint = null, array $assertions = array())
atPath($path)
setParameter($key, $value)
setParameters(array $parameters)
setTranslationDomain($translationDomain)
setInvalidValue($invalidValue)
setPlural($number)
setCode($code)
setCause($cause)
buildNextViolation($message)
assertRaised()

Details

__construct(ExecutionContextInterface $context, $message, Constraint $constraint = null, array $assertions = array())

Parameters

ExecutionContextInterface $context
$message
Constraint $constraint
array $assertions

atPath($path)

Parameters

$path

setParameter($key, $value)

Parameters

$key
$value

setParameters(array $parameters)

Parameters

array $parameters

setTranslationDomain($translationDomain)

Parameters

$translationDomain

setInvalidValue($invalidValue)

Parameters

$invalidValue

setPlural($number)

Parameters

$number

setCode($code)

Parameters

$code

setCause($cause)

Parameters

$cause

buildNextViolation($message)

Parameters

$message

assertRaised()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Validator/Test/ConstraintViolationAssertion.html