public function testReturnsCompleteObjectWheneverItIsPossible(FixtureInterface $fixture, GenerationContext $context, ObjectGeneratorInterface $decoratedGenerator, ObjectBag $expected) { $set = ResolvedFixtureSetFactory::create(null, (new FixtureBag())->with($fixture)); $generator = new CompleteObjectGenerator($decoratedGenerator); $actual = $generator->generate($fixture, $set, $context); $this->assertEquals($expected, $actual); }