api/symfony/Component/Asset/Tests/VersionStrategy/JsonManifestVersionStrategyTest.yaml
2024-09-26 02:03:21 -07:00

88 lines
2.5 KiB
YAML

name: JsonManifestVersionStrategyTest
class_comment: null
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: AssetNotFoundException
type: class
source: Symfony\Component\Asset\Exception\AssetNotFoundException
- name: RuntimeException
type: class
source: Symfony\Component\Asset\Exception\RuntimeException
- name: JsonManifestVersionStrategy
type: class
source: Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy
- name: MockHttpClient
type: class
source: Symfony\Component\HttpClient\MockHttpClient
- name: MockResponse
type: class
source: Symfony\Component\HttpClient\Response\MockResponse
properties: []
methods:
- name: testGetVersion
visibility: public
parameters:
- name: strategy
comment: '# * @dataProvider provideValidStrategies'
- name: testApplyVersion
visibility: public
parameters:
- name: strategy
comment: '# * @dataProvider provideValidStrategies'
- name: testApplyVersionWhenKeyDoesNotExistInManifest
visibility: public
parameters:
- name: strategy
comment: '# * @dataProvider provideValidStrategies'
- name: testStrictExceptionWhenKeyDoesNotExistInManifest
visibility: public
parameters:
- name: strategy
- name: path
- name: message
comment: '# * @dataProvider provideStrictStrategies'
- name: testMissingManifestFileThrowsException
visibility: public
parameters:
- name: strategy
comment: '# * @dataProvider provideMissingStrategies'
- name: testManifestFileWithBadJSONThrowsException
visibility: public
parameters:
- name: strategy
comment: '# * @dataProvider provideInvalidStrategies'
- name: testRemoteManifestFileWithoutHttpClient
visibility: public
parameters: []
comment: null
- name: provideValidStrategies
visibility: public
parameters: []
comment: null
- name: provideInvalidStrategies
visibility: public
parameters: []
comment: null
- name: provideMissingStrategies
visibility: public
parameters: []
comment: null
- name: provideStrategies
visibility: public
parameters:
- name: manifestPath
comment: null
- name: provideStrictStrategies
visibility: public
parameters: []
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\Asset\Exception\AssetNotFoundException
- Symfony\Component\Asset\Exception\RuntimeException
- Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy
- Symfony\Component\HttpClient\MockHttpClient
- Symfony\Component\HttpClient\Response\MockResponse
interfaces: []