Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\StringMergerParserTest::testIfNotFunctionFixtureReferenceIsFoundThenTheResultWillRemainUnchanged PHP Method

testIfNotFunctionFixtureReferenceIsFoundThenTheResultWillRemainUnchanged() public method

    public function testIfNotFunctionFixtureReferenceIsFoundThenTheResultWillRemainUnchanged()
    {
        $value = 'foo';
        $decoratedParserProphecy = $this->prophesize(ParserInterface::class);
        $decoratedParserProphecy->parse($value)->willReturn(new ListValue([new FakeValue(), 'azerty', new FakeValue(), 'qw', new FakeValue(), 'erty']));
        /** @var ParserInterface $decoratedParser */
        $decoratedParser = $decoratedParserProphecy->reveal();
        $expected = new ListValue([new FakeValue(), 'azerty', new FakeValue(), 'qw', new FakeValue(), 'erty']);
        $parser = new StringMergerParser($decoratedParser);
        $actual = $parser->parse($value);
        $this->assertEquals($expected, $actual);
        $decoratedParserProphecy->parse(Argument::any())->shouldHaveBeenCalledTimes(1);
    }