Nelmio\Alice\Throwable\Exception\Generator\Resolver\RecursionLimitReachedExceptionFactoryTest::testTestCreateNewExceptionWithFactory PHP 메소드

testTestCreateNewExceptionWithFactory() 공개 메소드

    public function testTestCreateNewExceptionWithFactory()
    {
        $exception = RecursionLimitReachedExceptionFactory::create(10, 'foo');
        $this->assertEquals('Recursion limit (10 tries) reached while resolving the parameter "foo"', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
RecursionLimitReachedExceptionFactoryTest