Nelmio\Alice\Throwable\Exception\ParameterNotFoundExceptionFactoryTest::testTestCreateForWhenResolvingParameter PHP Метод

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

    public function testTestCreateForWhenResolvingParameter()
    {
        $exception = ParameterNotFoundExceptionFactory::createForWhenResolvingParameter('foo', new Parameter('bar', 'baz'));
        $this->assertEquals('Could not find the parameter "foo" when resolving "bar".', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }