Nelmio\Alice\Throwable\Exception\Generator\Instantiator\InstantiationExceptionFactoryTest::testTestCreateForNonPublicConstructor PHP Method

testTestCreateForNonPublicConstructor() public method

    public function testTestCreateForNonPublicConstructor()
    {
        $exception = InstantiationExceptionFactory::createForNonPublicConstructor(new SimpleFixture('foo', 'Dummy', SpecificationBagFactory::create()));
        $this->assertEquals('Could not instantiate "foo", the constructor of "Dummy" is not public.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }