public function testParsedDynamicArrayQuantifierCanBeAValue()
{
$token = new Token('10x @user', new TokenType(TokenType::DYNAMIC_ARRAY_TYPE));
$decoratedParserProphecy = $this->prophesize(ParserInterface::class);
$decoratedParserProphecy->parse('10')->willReturn(new FakeValue());
$decoratedParserProphecy->parse('@user')->willReturn('parsed_element');
/** @var ParserInterface $decoratedParser */
$decoratedParser = $decoratedParserProphecy->reveal();
$expected = new DynamicArrayValue(new FakeValue(), 'parsed_element');
$parser = new DynamicArrayTokenParser($decoratedParser);
$actual = $parser->parse($token);
$this->assertEquals($expected, $actual);
$decoratedParserProphecy->parse(Argument::any())->shouldHaveBeenCalledTimes(2);
}