protected function setPropertyPath(string
$propertyPath) { $this->propertyPath =
$propertyPath;
$this->context->
setNode($this->value,
$this->object,
$this->metadata,
$this->propertyPath
);
} 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);
});
}