411 lines
9.5 KiB
YAML
411 lines
9.5 KiB
YAML
name: EnvVarProcessorTest
|
|
class_comment: null
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: RewindableGenerator
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Argument\RewindableGenerator
|
|
- name: Container
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Container
|
|
- name: ContainerBuilder
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\ContainerBuilder
|
|
- name: EnvVarLoaderInterface
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\EnvVarLoaderInterface
|
|
- name: EnvVarProcessor
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\EnvVarProcessor
|
|
- name: EnvNotFoundException
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Exception\EnvNotFoundException
|
|
- name: ParameterCircularReferenceException
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException
|
|
- name: RuntimeException
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Exception\RuntimeException
|
|
- name: IntBackedEnum
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Tests\Fixtures\IntBackedEnum
|
|
- name: StringBackedEnum
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\Tests\Fixtures\StringBackedEnum
|
|
properties: []
|
|
methods:
|
|
- name: testGetEnvString
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validStrings'
|
|
- name: validStrings
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvRealEnv
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validRealEnvValues'
|
|
- name: validRealEnvValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvRealEnvInvalid
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvRealEnvNonScalar
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvBool
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validBools'
|
|
- name: testGetEnvCachesEnv
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: loadEnvVars
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testReset
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: loadEnvVars
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvNot
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validBools'
|
|
- name: validBools
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvInt
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validInts'
|
|
- name: validInts
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvIntInvalid
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider invalidInts'
|
|
- name: invalidInts
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvFloat
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validFloats'
|
|
- name: validFloats
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvFloatInvalid
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider invalidFloats'
|
|
- name: invalidFloats
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvConst
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validConsts'
|
|
- name: validConsts
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvConstInvalid
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider invalidConsts'
|
|
- name: invalidConsts
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvBase64
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvTrim
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvJson
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validJson'
|
|
- name: validJson
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvInvalidJson
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvJsonOther
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider otherJsonValues'
|
|
- name: otherJsonValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvUnknown
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvKeyInvalidKey
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvKeyNoArrayResult
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider noArrayValues'
|
|
- name: noArrayValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvKeyArrayKeyNotFound
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider invalidArrayValues'
|
|
- name: invalidArrayValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvKey
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider arrayValues'
|
|
- name: arrayValues
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvKeyChained
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvEnum
|
|
visibility: public
|
|
parameters:
|
|
- name: backedEnum
|
|
comment: '# * @dataProvider provideGetEnvEnum'
|
|
- name: provideGetEnvEnum
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvEnumInvalidEnum
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvEnumInvalidResolvedValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvEnumInvalidArg
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvEnumInvalidBackedValue
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvNullable
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validNullables'
|
|
- name: validNullables
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testRequireMissingFile
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testRequireFile
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvResolve
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validResolve'
|
|
- name: validResolve
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvResolveNoMatch
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvResolveNotScalar
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * @dataProvider notScalarResolve'
|
|
- name: notScalarResolve
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvResolveNestedEnv
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvResolveNestedRealEnv
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvCsv
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
- name: processed
|
|
comment: '# * @dataProvider validCsv'
|
|
- name: testGetEnvShuffle
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvShuffleInvalid
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: validCsv
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testEnvLoader
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: loadEnvVars
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: __toString
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: loadEnvVars
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: __toString
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testCircularEnvLoader
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: loadEnvVars
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvInvalidPrefixWithDefault
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvUrlPath
|
|
visibility: public
|
|
parameters:
|
|
- name: expected
|
|
- name: url
|
|
comment: '# * @dataProvider provideGetEnvUrlPath'
|
|
- name: provideGetEnvUrlPath
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvCastsNullBehavior
|
|
visibility: public
|
|
parameters:
|
|
- name: expected
|
|
- name: prefix
|
|
comment: '# * @testWith ["", "string"]
|
|
|
|
# * [null, ""]
|
|
|
|
# * [false, "bool"]
|
|
|
|
# * [true, "not"]
|
|
|
|
# * [0, "int"]
|
|
|
|
# * [0.0, "float"]'
|
|
- name: testGetEnvWithEmptyStringPrefixCastsToString
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testGetEnvDefined
|
|
visibility: public
|
|
parameters:
|
|
- name: expected
|
|
- name: callback
|
|
comment: '# * @dataProvider provideGetEnvDefined'
|
|
- name: testGetEnvUrlencode
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: provideGetEnvDefined
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Symfony\Component\DependencyInjection\Argument\RewindableGenerator
|
|
- Symfony\Component\DependencyInjection\Container
|
|
- Symfony\Component\DependencyInjection\ContainerBuilder
|
|
- Symfony\Component\DependencyInjection\EnvVarLoaderInterface
|
|
- Symfony\Component\DependencyInjection\EnvVarProcessor
|
|
- Symfony\Component\DependencyInjection\Exception\EnvNotFoundException
|
|
- Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException
|
|
- Symfony\Component\DependencyInjection\Exception\RuntimeException
|
|
- Symfony\Component\DependencyInjection\Tests\Fixtures\IntBackedEnum
|
|
- Symfony\Component\DependencyInjection\Tests\Fixtures\StringBackedEnum
|
|
interfaces:
|
|
- EnvVarLoaderInterface
|
|
- EnvVarLoaderInterface
|
|
- EnvVarLoaderInterface
|
|
- EnvVarLoaderInterface
|
|
- EnvVarLoaderInterface
|