public function testIfTheValueIsAnArrayThenAppliesItselfRecursivelyToArrays()
{
$value = ['foo', 'bar' => 'baz'];
$parserProphecy = $this->prophesize(ParserInterface::class);
$parserProphecy->parse('foo')->willReturn('parsed_foo');
$parserProphecy->parse('baz')->willReturn('parsed_baz');
/** @var ParserInterface $parser */
$parser = $parserProphecy->reveal();
$expected = new ArrayValue(['parsed_foo', 'bar' => 'parsed_baz']);
$denormalizer = new SimpleValueDenormalizer($parser);
$actual = $denormalizer->denormalize(new FakeFixture(), new FlagBag(''), $value);
$this->assertEquals($expected, $actual);
$parserProphecy->parse(Argument::any())->shouldHaveBeenCalledTimes(2);
}