protected function expectNoValidate() { $validator =
$this->context->
getValidator()->
inContext($this->context
);
$validator->
expectNoValidate();
} protected function expectValidateAt(int
$i, string
$propertyPath, mixed
$value, string|GroupSequence|array|null
$group) { $validator =
$this->context->
getValidator()->
inContext($this->context
);
$validator->
expectValidation($i,
$propertyPath,
$value,
$group,
function D
$passedConstraints) { $expectedConstraints =
new LogicalOr();
$expectedConstraints->
setConstraints([new IsNull(),
new IsIdentical([]),
new IsInstanceOf(Valid::
class)]);
Assert::
assertThat($passedConstraints,
$expectedConstraints);
});
} protected function expectValidateValue(int
$i, mixed
$value, array
$constraints =
[], string|GroupSequence|array
$group = null
) { $contextualValidator =
$this->context->
getValidator()->
inContext($this->context
);
$contextualValidator->
expectValidation($i, null,
$value,
$group,
function D
$passedConstraints) use ($constraints) { if (\
is_array($constraints) && !\
is_array($passedConstraints)) { $passedConstraints =
[$passedConstraints];
}