Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ObjectWithStaticPropertiesAndMethods example
$this
->normalizer->
denormalize
(
[
'non_existing' => true
]
, ObjectDummy::
class
)
)
;
}
public
function
testNoTraversableSupport
(
)
{
$this
->
assertFalse
(
$this
->normalizer->
supportsNormalization
(
new
\
ArrayObject
(
)
)
)
;
}
public
function
testNormalizeStatic
(
)
{
$this
->
assertEquals
(
[
'foo' => 'K'
]
,
$this
->normalizer->
normalize
(
new
ObjectWithStaticPropertiesAndMethods
(
)
)
)
;
}
public
function
testNormalizeUpperCaseAttributes
(
)
{
$this
->
assertEquals
(
[
'Foo' => 'Foo', 'Bar' => 'BarBar'
]
,
$this
->normalizer->
normalize
(
new
ObjectWithUpperCaseAttributeNames
(
)
)
)
;
}
public
function
testNormalizeNotSerializableContext
(
)
{
$objectDummy
=
new
ObjectDummy
(
)
;
$expected
=
[