private ConstraintViolationBuilder
$builder;
protected function setUp(): void
{ $this->root =
[ 'data' =>
[ 'foo' => 'bar',
'baz' => 'foobar',
],
];
$this->violations =
new ConstraintViolationList();
$this->builder =
new ConstraintViolationBuilder($this->violations,
new Valid(),
$this->messageTemplate,
[],
$this->root, 'data', 'foo',
new IdentityTranslator());
} public function testAddViolation() { $this->builder->
addViolation();
$this->
assertViolationEquals(new ConstraintViolation($this->messageTemplate,
$this->messageTemplate,
[],
$this->root, 'data', 'foo', null, null,
new Valid()));
} public function testAppendPropertyPath() {