public testTestCreateFromResolutionThrowable ( ) |
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());
}