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

testTestCreateForConstructorIsMissingMandatoryParameters() public method

    public function testTestCreateForConstructorIsMissingMandatoryParameters()
    {
        $exception = InstantiationExceptionFactory::createForConstructorIsMissingMandatoryParameters(new DummyFixture('foo'));
        $this->assertEquals('Could not instantiate "foo", the constructor has mandatory parameters but no parameters has been given.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }