Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
RawMessage 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 */