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

testTestCreate() public method

public testTestCreate ( )
    public function testTestCreate()
    {
        $code = 500;
        $previous = new \Error();
        $exception = InstantiationExceptionFactory::create(new DummyFixture('foo'), $code, $previous);
        $this->assertEquals('Could not instantiate fixture "foo".', $exception->getMessage());
        $this->assertEquals($code, $exception->getCode());
        $this->assertSame($previous, $exception->getPrevious());
    }