'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() { $this->builder
->
atPath('foo'
) ->
addViolation();
$this->
assertViolationEquals(new ConstraintViolation($this->messageTemplate,
$this->messageTemplate,
[],
$this->root, 'data.foo', 'foo', null, null,
new Valid()));
}