api/symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/BackedEnumValueResolverTest.yaml
2024-09-26 02:03:21 -07:00

83 lines
2.2 KiB
YAML

name: BackedEnumValueResolverTest
class_comment: null
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: Request
type: class
source: Symfony\Component\HttpFoundation\Request
- name: BackedEnumValueResolver
type: class
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\BackedEnumValueResolver
- name: ArgumentMetadata
type: class
source: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
- name: NotFoundHttpException
type: class
source: Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- name: IntEnum
type: class
source: Symfony\Component\HttpKernel\Tests\Fixtures\IntEnum
- name: Suit
type: class
source: Symfony\Component\HttpKernel\Tests\Fixtures\Suit
properties: []
methods:
- name: testSupports
visibility: public
parameters:
- name: request
- name: metadata
- name: expectedSupport
comment: '# * @dataProvider provideTestSupportsData'
- name: provideTestSupportsData
visibility: public
parameters: []
comment: null
- name: testResolve
visibility: public
parameters:
- name: request
- name: metadata
- name: expected
comment: '# * @dataProvider provideTestResolveData'
- name: provideTestResolveData
visibility: public
parameters: []
comment: null
- name: testResolveThrowsNotFoundOnInvalidValue
visibility: public
parameters: []
comment: null
- name: testResolveThrowsOnUnexpectedType
visibility: public
parameters: []
comment: null
- name: testResolveThrowsOnTypeError
visibility: public
parameters: []
comment: null
- name: createRequest
visibility: private
parameters:
- name: attributes
default: '[]'
comment: null
- name: createArgumentMetadata
visibility: private
parameters:
- name: name
- name: type
- name: variadic
default: 'false'
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\HttpFoundation\Request
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\BackedEnumValueResolver
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- Symfony\Component\HttpKernel\Tests\Fixtures\IntEnum
- Symfony\Component\HttpKernel\Tests\Fixtures\Suit
interfaces: []