SendEmailMessage example


        $serializer = new Serializer(
            [
                new SendEmailMessageJsonSerializer(),
            ],
            [
                new JsonEncoder(null),
            ]
        );
        $withoutSerializer = new Serializer([new ObjectNormalizer()][new JsonEncoder(null)]);

        $sendMail = new SendEmailMessage(
            new RawMessage('test'),
            null
        );

        $our = $serializer->serialize($sendMail, 'json');
        $their = $withoutSerializer->serialize($sendMail, 'json');

        static::assertNotEquals($our$their);
    }

    /** * @doesNotPerformAssertions */
Home | Imprint | This part of the site doesn't use cookies.