Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ObjectWithUpperCaseAttributeNames example
$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
=
[
'foo' => null,
'baz' => null,
'fooBar' => '',
'camelCase' => null,
'object' => null,