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