354 lines
9.5 KiB
YAML
354 lines
9.5 KiB
YAML
name: ArgumentResolverTest
|
|
class_comment: null
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: ServiceLocator
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\ServiceLocator
|
|
- name: Request
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Request
|
|
- name: Session
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Session\Session
|
|
- name: SessionInterface
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Session\SessionInterface
|
|
- name: MockArraySessionStorage
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage
|
|
- name: ValueResolver
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Attribute\ValueResolver
|
|
- name: ArgumentResolver
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver
|
|
- name: DefaultValueResolver
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver
|
|
- name: RequestAttributeValueResolver
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver
|
|
- name: ValueResolverInterface
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Controller\ValueResolverInterface
|
|
- name: ArgumentMetadata
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
|
|
- name: ArgumentMetadataFactory
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory
|
|
- name: NearMissValueResolverException
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Exception\NearMissValueResolverException
|
|
- name: ResolverNotFoundException
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Exception\ResolverNotFoundException
|
|
- name: ExtendingRequest
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Tests\Fixtures\Controller\ExtendingRequest
|
|
- name: ExtendingSession
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Tests\Fixtures\Controller\ExtendingSession
|
|
- name: NullableController
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController
|
|
- name: VariadicController
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController
|
|
properties: []
|
|
methods:
|
|
- name: getResolver
|
|
visibility: public
|
|
parameters:
|
|
- name: chainableResolvers
|
|
default: '[]'
|
|
- name: namedResolvers
|
|
default: 'null'
|
|
comment: null
|
|
- name: testDefaultState
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsReturnsEmptyArrayWhenNoArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsUsesDefaultValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsOverrideDefaultValueByRequestAttribute
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsFromClosure
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsUsesDefaultValueFromClosure
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsFromInvokableObject
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsFromFunctionName
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsFailsOnUnresolvedValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsInjectsRequest
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetArgumentsInjectsExtendingRequest
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetVariadicArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetVariadicArgumentsWithoutArrayInRequest
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testIfExceptionIsThrownWhenMissingAnArgument
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetNullableArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetNullableArgumentsWithDefaults
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionArgumentsWithExtendedSession
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionArgumentsWithInterface
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionMissMatchWithInterface
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionMissMatchWithImplementation
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetSessionMissMatchOnNull
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testTargetedResolver
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testTargetedResolverWithDefaultValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testTargetedResolverWithNullableValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testTargetedResolverWithRequestAttributeValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testDisabledResolver
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testManyTargetedResolvers
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testUnknownTargetedResolver
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testResolversChainCompletionWhenResolverThrowsSpecialException
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: resolve
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: argument
|
|
comment: null
|
|
- name: testExceptionListSingle
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: resolve
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: argument
|
|
comment: null
|
|
- name: testExceptionListMultiple
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: resolve
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: argument
|
|
comment: null
|
|
- name: resolve
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: argument
|
|
comment: null
|
|
- name: __invoke
|
|
visibility: public
|
|
parameters:
|
|
- name: foo
|
|
- name: bar
|
|
default: 'null'
|
|
comment: null
|
|
- name: controllerWithFoo
|
|
visibility: public
|
|
parameters:
|
|
- name: foo
|
|
comment: null
|
|
- name: controllerWithoutArguments
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: controllerWithFooAndDefaultBar
|
|
visibility: public
|
|
parameters:
|
|
- name: foo
|
|
- name: bar
|
|
default: 'null'
|
|
comment: null
|
|
- name: controllerWithFooBarFoobar
|
|
visibility: public
|
|
parameters:
|
|
- name: foo
|
|
- name: bar
|
|
- name: foobar
|
|
comment: null
|
|
- name: controllerWithRequest
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
comment: null
|
|
- name: controllerWithExtendingRequest
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
comment: null
|
|
- name: controllerWithSession
|
|
visibility: public
|
|
parameters:
|
|
- name: session
|
|
comment: null
|
|
- name: controllerWithSessionInterface
|
|
visibility: public
|
|
parameters:
|
|
- name: session
|
|
comment: null
|
|
- name: controllerWithExtendingSession
|
|
visibility: public
|
|
parameters:
|
|
- name: session
|
|
comment: null
|
|
- name: controllerTargetingResolver
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(DefaultValueResolver::class'
|
|
comment: null
|
|
- name: controllerTargetingResolverWithDefaultValue
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(TestEntityValueResolver::class'
|
|
comment: null
|
|
- name: controllerTargetingResolverWithNullableValue
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(TestEntityValueResolver::class'
|
|
comment: null
|
|
- name: controllerTargetingResolverWithTestEntity
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(TestEntityValueResolver::class'
|
|
comment: null
|
|
- name: controllerDisablingResolver
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(RequestAttributeValueResolver::class'
|
|
- name: 'true'
|
|
comment: null
|
|
- name: controllerTargetingManyResolvers
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(RequestAttributeValueResolver::class'
|
|
comment: null
|
|
- name: controllerTargetingUnknownResolver
|
|
visibility: public
|
|
parameters:
|
|
- name: '#[ValueResolver(''foo'''
|
|
comment: null
|
|
- name: resolve
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: argument
|
|
comment: null
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: title
|
|
comment: null
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Symfony\Component\DependencyInjection\ServiceLocator
|
|
- Symfony\Component\HttpFoundation\Request
|
|
- Symfony\Component\HttpFoundation\Session\Session
|
|
- Symfony\Component\HttpFoundation\Session\SessionInterface
|
|
- Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage
|
|
- Symfony\Component\HttpKernel\Attribute\ValueResolver
|
|
- Symfony\Component\HttpKernel\Controller\ArgumentResolver
|
|
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver
|
|
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver
|
|
- Symfony\Component\HttpKernel\Controller\ValueResolverInterface
|
|
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
|
|
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory
|
|
- Symfony\Component\HttpKernel\Exception\NearMissValueResolverException
|
|
- Symfony\Component\HttpKernel\Exception\ResolverNotFoundException
|
|
- Symfony\Component\HttpKernel\Tests\Fixtures\Controller\ExtendingRequest
|
|
- Symfony\Component\HttpKernel\Tests\Fixtures\Controller\ExtendingSession
|
|
- Symfony\Component\HttpKernel\Tests\Fixtures\Controller\NullableController
|
|
- Symfony\Component\HttpKernel\Tests\Fixtures\Controller\VariadicController
|
|
interfaces:
|
|
- ValueResolverInterface
|
|
- ValueResolverInterface
|
|
- ValueResolverInterface
|
|
- ValueResolverInterface
|
|
- ValueResolverInterface
|