public function testAttributesContextDenormalize() { $normalizer =
$this->
getDenormalizerForAttributes();
$objectInner =
new ObjectInner();
$objectInner->foo = 'innerFoo';
$objectOuter =
new ObjectOuter();
$objectOuter->bar = 'bar';
$objectOuter->
setInner($objectInner);
$context =
['attributes' =>
['bar', 'inner' =>
['foo'
]]];
$this->
assertEquals($objectOuter,
$normalizer->
denormalize( [ 'foo' => 'foo',
'bar' => 'bar',
'date' => '2017-02-03',
'inner' =>
['foo' => 'innerFoo', 'bar' => 'innerBar'
],
], ObjectOuter::
class, null,
$context));
}