Nelmio\Alice\Throwable\Exception\Generator\Resolver\CircularReferenceExceptionFactoryTest::testTestCreateNewExceptionWithFactory PHP Метод

testTestCreateNewExceptionWithFactory() публичный Метод

    public function testTestCreateNewExceptionWithFactory()
    {
        $exception = CircularReferenceExceptionFactory::createForParameter('foo', ['bar' => 1, 'baz' => 0]);
        $this->assertEquals('Circular reference detected for the parameter "foo" while resolving ["bar", "baz"].', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
CircularReferenceExceptionFactoryTest