public function testWithers(array
$values) { $context =
$this->contextBuilder
->
withInstance($values[ConstraintViolationListNormalizer::INSTANCE
]) ->
withStatus($values[ConstraintViolationListNormalizer::STATUS
]) ->
withTitle($values[ConstraintViolationListNormalizer::TITLE
]) ->
withType($values[ConstraintViolationListNormalizer::TYPE
]) ->
withPayloadFields($values[ConstraintViolationListNormalizer::PAYLOAD_FIELDS
]) ->
toArray();
$this->
assertSame($values,
$context);
} /**
* @return iterable<array{0: array<string, mixed>}>
*/
public static function withersDataProvider(): iterable
{ yield 'With values' =>
[[