Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setGo example
public
function
testNormalize
(
)
{
$obj
=
new
ObjectDummy
(
)
;
$object
=
new
\
stdClass
(
)
;
$obj
->
setFoo
(
'foo'
)
;
$obj
->bar = 'bar';
$obj
->
setBaz
(
true
)
;
$obj
->
setCamelCase
(
'camelcase'
)
;
$obj
->
setObject
(
$object
)
;
$obj
->
setGo
(
true
)
;
$this
->serializer
->
expects
(
$this
->
once
(
)
)
->
method
(
'normalize'
)
->
with
(
$object
, 'any'
)
->
willReturn
(
'string_object'
)
;
$this
->
assertEquals
(
[
'foo' => 'foo',