'foo' => 10,
];
$denormalizer =
$this->
getDenormalizerForConstructArguments();
$result =
$denormalizer->
denormalize($data, ConstructorArgumentsObject::
class, 'json',
[ 'default_constructor_arguments' =>
[ ConstructorArgumentsObject::
class => ['foo' => '', 'bar' => '', 'baz' => null
],
],
]);
$this->
assertEquals(new ConstructorArgumentsObject(10, '', null
),
$result);
} public function testMetadataAwareNameConvertorWithNotSerializedConstructorParameter() { $denormalizer =
$this->
getDenormalizerForConstructArguments();
$obj =
new NotSerializedConstructorArgumentDummy('buz'
);
$obj->
setBar('xyz'
);
$this->
assertEquals( $obj,