Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\FunctionFixtureReferenceParserTest::testIfThereIsOnlyOneElementThenReturnTheElementInsteadOfAValueList PHP Method

testIfThereIsOnlyOneElementThenReturnTheElementInsteadOfAValueList() public method

    public function testIfThereIsOnlyOneElementThenReturnTheElementInsteadOfAValueList($value, $expected)
    {
        $decoratedParserProphecy = $this->prophesize(ParserInterface::class);
        $decoratedParserProphecy->parse(Argument::any())->willReturn($expected);
        /** @var ParserInterface $decoratedParser */
        $decoratedParser = $decoratedParserProphecy->reveal();
        $parser = new FunctionFixtureReferenceParser($decoratedParser);
        $actual = $parser->parse('');
        $this->assertEquals($expected, $actual);
    }