Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable\StringArrayTokenParserTest::testIsAbleToParseEmptyArrays PHP Method

testIsAbleToParseEmptyArrays() public method

    public function testIsAbleToParseEmptyArrays()
    {
        $token = new Token('[]', new TokenType(TokenType::STRING_ARRAY_TYPE));
        $decoratedParserProphecy = $this->prophesize(ParserInterface::class);
        $decoratedParserProphecy->parse(Argument::any())->shouldNotBeCalled();
        /** @var ParserInterface $decoratedParser */
        $decoratedParser = $decoratedParserProphecy->reveal();
        $expected = [];
        $parser = new StringArrayTokenParser($decoratedParser);
        $actual = $parser->parse($token);
        $this->assertEquals($expected, $actual);
    }