Nelmio\Alice\Generator\ObjectGenerator\CompleteObjectGeneratorTest::testReturnsCompleteObjectWheneverItIsPossible PHP Method

testReturnsCompleteObjectWheneverItIsPossible() public method

public testReturnsCompleteObjectWheneverItIsPossible ( Nelmio\Alice\FixtureInterface $fixture, GenerationContext $context, Nelmio\Alice\Generator\ObjectGeneratorInterface $decoratedGenerator, ObjectBag $expected )
$fixture Nelmio\Alice\FixtureInterface
$context Nelmio\Alice\Generator\GenerationContext
$decoratedGenerator Nelmio\Alice\Generator\ObjectGeneratorInterface
$expected Nelmio\Alice\ObjectBag
    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);
    }