Nelmio\Alice\Throwable\Exception\Generator\Resolver\ResolverNotFoundExceptionFactoryTest::testTestCreateNewExceptionWithFactoryForParameter PHP Method

testTestCreateNewExceptionWithFactoryForParameter() public method

    public function testTestCreateNewExceptionWithFactoryForParameter()
    {
        $exception = ResolverNotFoundExceptionFactory::createForParameter('foo');
        $this->assertEquals('No resolver found to resolve parameter "foo".', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }