public function testReturnsSetWithResolvedValue()
{
$value = new FunctionCallValue('foo');
$fixture = new FakeFixture();
$set = ResolvedFixtureSetFactory::create(new ParameterBag(['foo' => 'bar']));
$scope = ['val' => 'scopie'];
$context = new GenerationContext();
$context->markIsResolvingFixture('foo');
$fakerGeneratorProphecy = $this->prophesize(FakerGenerator::class);
$fakerGeneratorProphecy->format('foo', [])->willReturn('bar');
/** @var FakerGenerator $fakerGenerator */
$fakerGenerator = $fakerGeneratorProphecy->reveal();
$expected = new ResolvedValueWithFixtureSet('bar', $set);
$resolver = new FakerFunctionCallValueResolver($fakerGenerator);
$actual = $resolver->resolve($value, $fixture, $set, $scope, $context);
$this->assertEquals($expected, $actual);
}