$this->
assertEquals('bar',
$obj->
getBar());
} public function testNormalizeWithParentClass() { $group =
new GroupDummyChild();
$group->
setBaz('baz'
);
$group->
setFoo('foo'
);
$group->
setBar('bar'
);
$group->
setQuux('quux'
);
$group->
setKevin('Kevin'
);
$group->
setCoopTilleuls('coop'
);
$this->
assertEquals( ['foo' => 'foo', 'bar' => 'bar', 'quux' => 'quux', 'kevin' => 'Kevin', 'coopTilleuls' => 'coop', 'fooBar' => null, 'symfony' => null, 'baz' => 'baz'
],
$this->normalizer->
normalize($group, 'any'
) );
} public function testDenormalizeWithParentClass() { $obj =
$this->normalizer->
denormalize( ['foo' => 'foo', 'bar' => 'bar', 'kevin' => 'Kevin', 'baz' => 'baz'
],
GroupDummyChild::
class,