Nelmio\Alice\Throwable\Exception\Generator\Resolver\UnresolvableValueDuringGenerationExceptionFactoryTest::testTestCreateFromResolutionThrowable PHP Method

testTestCreateFromResolutionThrowable() public method

    public function testTestCreateFromResolutionThrowable()
    {
        $previous = new RootResolutionException();
        $exception = UnresolvableValueDuringGenerationExceptionFactory::createFromResolutionThrowable($previous);
        $this->assertEquals('Could not resolve value during the generation process.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertSame($previous, $exception->getPrevious());
    }
UnresolvableValueDuringGenerationExceptionFactoryTest