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

testTestCreateForCouldNotGetConstructorData() public method

    public function testTestCreateForCouldNotGetConstructorData()
    {
        $exception = InstantiationExceptionFactory::createForCouldNotGetConstructorData(new DummyFixture('foo'));
        $this->assertEquals('Could not get the necessary data on the constructor to instantiate "foo".', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }