ProblemNormalizerContextBuilder example

use Symfony\Component\Serializer\Normalizer\ProblemNormalizer;

/** * @author Mathias Arlaud <mathias.arlaud@gmail.com> */
class ProblemNormalizerContextBuilderTest extends TestCase
{
    private ProblemNormalizerContextBuilder $contextBuilder;

    protected function setUp(): void
    {
        $this->contextBuilder = new ProblemNormalizerContextBuilder();
    }

    /** * @dataProvider withersDataProvider * * @param array<string, mixed> $values */
    public function testWithers(array $values)
    {
        $context = $this->contextBuilder
            ->withTitle($values[ProblemNormalizer::TITLE])
            
Home | Imprint | This part of the site doesn't use cookies.