Nelmio\Alice\Generator\Instantiator\Chainable\NullConstructorInstantiatorTest::testIfCannotGetConstructorReflectionTriesToInstantiateObjectWithoutArguments PHP Method

testIfCannotGetConstructorReflectionTriesToInstantiateObjectWithoutArguments() public method

    public function testIfCannotGetConstructorReflectionTriesToInstantiateObjectWithoutArguments()
    {
        $fixture = new SimpleFixture('dummy', DummyWithDefaultConstructor::class, SpecificationBagFactory::create());
        $set = $this->instantiator->instantiate($fixture, ResolvedFixtureSetFactory::create(), new GenerationContext());
        $expected = new DummyWithDefaultConstructor();
        $actual = $set->getObjects()->get($fixture)->getInstance();
        $this->assertEquals($expected, $actual);
    }