Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
GetSetDummy example
$this
->normalizer->
setSerializer
(
$this
->serializer
)
;
}
public
function
testInterface
(
)
{
$this
->
assertInstanceOf
(
NormalizerInterface::
class
,
$this
->normalizer
)
;
$this
->
assertInstanceOf
(
DenormalizerInterface::
class
,
$this
->normalizer
)
;
}
public
function
testNormalize
(
)
{
$obj
=
new
GetSetDummy
(
)
;
$object
=
new
\
stdClass
(
)
;
$obj
->
setFoo
(
'foo'
)
;
$obj
->
setBar
(
'bar'
)
;
$obj
->
setBaz
(
true
)
;
$obj
->
setCamelCase
(
'camelcase'
)
;
$obj
->
setObject
(
$object
)
;
$this
->serializer
->
expects
(
$this
->
once
(
)
)
->
method
(
'normalize'
)
->
with
(
$object
, 'any'
)