\Symfony\Component\OptionsResolver\TestsOptionsResolverTest

Summary

Methods
Properties
Constants
testResolveFailsIfNonExistingOption()
testResolveFailsIfMultipleNonExistingOptions()
testResolveFailsFromLazyOption()
testSetDefaultReturnsThis()
testSetDefault()
testFailIfSetDefaultFromLazyOption()
testHasDefault()
testHasDefaultWithNullValue()
testSetLazyReturnsThis()
testSetLazyClosure()
testClosureWithoutTypeHintNotInvoked()
testClosureWithoutParametersNotInvoked()
testAccessPreviousDefaultValue()
testAccessPreviousLazyDefaultValue()
testPreviousValueIsNotEvaluatedIfNoSecondArgument()
testOverwrittenLazyOptionNotEvaluated()
testInvokeEachLazyOptionOnlyOnce()
testSetRequiredReturnsThis()
testFailIfSetRequiredFromLazyOption()
testResolveFailsIfRequiredOptionMissing()
testResolveSucceedsIfRequiredOptionSet()
testResolveSucceedsIfRequiredOptionPassed()
testIsRequired()
testRequiredIfSetBefore()
testStillRequiredAfterSet()
testIsNotRequiredAfterRemove()
testIsNotRequiredAfterClear()
testGetRequiredOptions()
testIsMissingIfNotSet()
testIsNotMissingIfSet()
testIsNotMissingAfterRemove()
testIsNotMissingAfterClear()
testGetMissingOptions()
testFailIfSetDefinedFromLazyOption()
testDefinedOptionsNotIncludedInResolvedOptions()
testDefinedOptionsIncludedIfDefaultSetBefore()
testDefinedOptionsIncludedIfDefaultSetAfter()
testDefinedOptionsIncludedIfPassedToResolve()
testIsDefined()
testLazyOptionsAreDefined()
testRequiredOptionsAreDefined()
testSetOptionsAreDefined()
testGetDefinedOptions()
testRemovedOptionsAreNotDefined()
testClearedOptionsAreNotDefined()
testSetAllowedTypesFailsIfUnknownOption()
testResolveTypedArray()
testFailIfSetAllowedTypesFromLazyOption()
testResolveFailsIfInvalidTypedArray()
testResolveFailsWithNonArray()
testResolveFailsIfTypedArrayContainsInvalidTypes()
testResolveFailsWithCorrectLevelsButWrongScalar()
testResolveFailsIfInvalidType()
provideInvalidTypes()
testResolveSucceedsIfValidType()
testResolveFailsIfInvalidTypeMultiple()
testResolveSucceedsIfValidTypeMultiple()
testResolveSucceedsIfInstanceOfClass()
testResolveSucceedsIfTypedArray()
testResolveFailsIfNotInstanceOfClass()
testAddAllowedTypesFailsIfUnknownOption()
testFailIfAddAllowedTypesFromLazyOption()
testResolveFailsIfInvalidAddedType()
testResolveSucceedsIfValidAddedType()
testResolveFailsIfInvalidAddedTypeMultiple()
testResolveSucceedsIfValidAddedTypeMultiple()
testAddAllowedTypesDoesNotOverwrite()
testAddAllowedTypesDoesNotOverwrite2()
testSetAllowedValuesFailsIfUnknownOption()
testFailIfSetAllowedValuesFromLazyOption()
testResolveFailsIfInvalidValue()
testResolveFailsIfInvalidValueIsNull()
testResolveFailsIfInvalidValueStrict()
testResolveSucceedsIfValidValue()
testResolveSucceedsIfValidValueIsNull()
testResolveFailsIfInvalidValueMultiple()
testResolveSucceedsIfValidValueMultiple()
testResolveFailsIfClosureReturnsFalse()
testResolveSucceedsIfClosureReturnsTrue()
testResolveFailsIfAllClosuresReturnFalse()
testResolveSucceedsIfAnyClosureReturnsTrue()
testAddAllowedValuesFailsIfUnknownOption()
testFailIfAddAllowedValuesFromLazyOption()
testResolveFailsIfInvalidAddedValue()
testResolveSucceedsIfValidAddedValue()
testResolveSucceedsIfValidAddedValueIsNull()
testResolveFailsIfInvalidAddedValueMultiple()
testResolveSucceedsIfValidAddedValueMultiple()
testAddAllowedValuesDoesNotOverwrite()
testAddAllowedValuesDoesNotOverwrite2()
testResolveFailsIfAllAddedClosuresReturnFalse()
testResolveSucceedsIfAnyAddedClosureReturnsTrue()
testResolveSucceedsIfAnyAddedClosureReturnsTrue2()
testSetNormalizerReturnsThis()
testSetNormalizerClosure()
testSetNormalizerFailsIfUnknownOption()
testFailIfSetNormalizerFromLazyOption()
testNormalizerReceivesSetOption()
testNormalizerReceivesPassedOption()
testValidateTypeBeforeNormalization()
testValidateValueBeforeNormalization()
testNormalizerCanAccessOtherOptions()
testNormalizerCanAccessLazyOptions()
testFailIfCyclicDependencyBetweenNormalizers()
testFailIfCyclicDependencyBetweenNormalizerAndLazyOption()
testCaughtExceptionFromNormalizerDoesNotCrashOptionResolver()
testCaughtExceptionFromLazyDoesNotCrashOptionResolver()
testInvokeEachNormalizerOnlyOnce()
testNormalizerNotCalledForUnsetOptions()
testSetDefaultsReturnsThis()
testSetDefaults()
testFailIfSetDefaultsFromLazyOption()
testRemoveReturnsThis()
testRemoveSingleOption()
testRemoveMultipleOptions()
testRemoveLazyOption()
testRemoveNormalizer()
testRemoveAllowedTypes()
testRemoveAllowedValues()
testFailIfRemoveFromLazyOption()
testRemoveUnknownOptionIgnored()
testClearReturnsThis()
testClearRemovesAllOptions()
testClearLazyOption()
testClearNormalizer()
testClearAllowedTypes()
testClearAllowedValues()
testFailIfClearFromLazyption()
testClearOptionAndNormalizer()
testArrayAccess()
testArrayAccessGetFailsOutsideResolve()
testArrayAccessExistsFailsOutsideResolve()
testArrayAccessSetNotSupported()
testArrayAccessUnsetNotSupported()
testFailIfGetNonExisting()
testFailIfGetDefinedButUnset()
testFailIfCyclicDependency()
testCount()
testCountFailsOutsideResolve()
testNestedArrays()
testNested2Arrays()
testNestedArraysException()
testNestedArrayException1()
testNestedArrayException2()
testNestedArrayException3()
testNestedArrayException4()
testNestedArrayException5()
No public properties found
No constants found
setUp()
No protected properties found
N/A
No private methods found
$resolver
N/A

Properties

Methods

testResolveFailsIfNonExistingOption()

testResolveFailsIfNonExistingOption() 

testResolveFailsIfMultipleNonExistingOptions()

testResolveFailsIfMultipleNonExistingOptions() 

testResolveFailsFromLazyOption()

testResolveFailsFromLazyOption() 

testSetDefaultReturnsThis()

testSetDefaultReturnsThis() 

testSetDefault()

testSetDefault() 

testFailIfSetDefaultFromLazyOption()

testFailIfSetDefaultFromLazyOption() 

testHasDefault()

testHasDefault() 

testHasDefaultWithNullValue()

testHasDefaultWithNullValue() 

testSetLazyReturnsThis()

testSetLazyReturnsThis() 

testSetLazyClosure()

testSetLazyClosure() 

testClosureWithoutTypeHintNotInvoked()

testClosureWithoutTypeHintNotInvoked() 

testClosureWithoutParametersNotInvoked()

testClosureWithoutParametersNotInvoked() 

testAccessPreviousDefaultValue()

testAccessPreviousDefaultValue() 

testAccessPreviousLazyDefaultValue()

testAccessPreviousLazyDefaultValue() 

testPreviousValueIsNotEvaluatedIfNoSecondArgument()

testPreviousValueIsNotEvaluatedIfNoSecondArgument() 

testOverwrittenLazyOptionNotEvaluated()

testOverwrittenLazyOptionNotEvaluated() 

testInvokeEachLazyOptionOnlyOnce()

testInvokeEachLazyOptionOnlyOnce() 

testSetRequiredReturnsThis()

testSetRequiredReturnsThis() 

testFailIfSetRequiredFromLazyOption()

testFailIfSetRequiredFromLazyOption() 

testResolveFailsIfRequiredOptionMissing()

testResolveFailsIfRequiredOptionMissing() 

testResolveSucceedsIfRequiredOptionSet()

testResolveSucceedsIfRequiredOptionSet() 

testResolveSucceedsIfRequiredOptionPassed()

testResolveSucceedsIfRequiredOptionPassed() 

testIsRequired()

testIsRequired() 

testRequiredIfSetBefore()

testRequiredIfSetBefore() 

testStillRequiredAfterSet()

testStillRequiredAfterSet() 

testIsNotRequiredAfterRemove()

testIsNotRequiredAfterRemove() 

testIsNotRequiredAfterClear()

testIsNotRequiredAfterClear() 

testGetRequiredOptions()

testGetRequiredOptions() 

testIsMissingIfNotSet()

testIsMissingIfNotSet() 

testIsNotMissingIfSet()

testIsNotMissingIfSet() 

testIsNotMissingAfterRemove()

testIsNotMissingAfterRemove() 

testIsNotMissingAfterClear()

testIsNotMissingAfterClear() 

testGetMissingOptions()

testGetMissingOptions() 

testFailIfSetDefinedFromLazyOption()

testFailIfSetDefinedFromLazyOption() 

testDefinedOptionsNotIncludedInResolvedOptions()

testDefinedOptionsNotIncludedInResolvedOptions() 

testDefinedOptionsIncludedIfDefaultSetBefore()

testDefinedOptionsIncludedIfDefaultSetBefore() 

testDefinedOptionsIncludedIfDefaultSetAfter()

testDefinedOptionsIncludedIfDefaultSetAfter() 

testDefinedOptionsIncludedIfPassedToResolve()

testDefinedOptionsIncludedIfPassedToResolve() 

testIsDefined()

testIsDefined() 

testLazyOptionsAreDefined()

testLazyOptionsAreDefined() 

testRequiredOptionsAreDefined()

testRequiredOptionsAreDefined() 

testSetOptionsAreDefined()

testSetOptionsAreDefined() 

testGetDefinedOptions()

testGetDefinedOptions() 

testRemovedOptionsAreNotDefined()

testRemovedOptionsAreNotDefined() 

testClearedOptionsAreNotDefined()

testClearedOptionsAreNotDefined() 

testSetAllowedTypesFailsIfUnknownOption()

testSetAllowedTypesFailsIfUnknownOption() 

testResolveTypedArray()

testResolveTypedArray() 

testFailIfSetAllowedTypesFromLazyOption()

testFailIfSetAllowedTypesFromLazyOption() 

testResolveFailsIfInvalidTypedArray()

testResolveFailsIfInvalidTypedArray() 

testResolveFailsWithNonArray()

testResolveFailsWithNonArray() 

testResolveFailsIfTypedArrayContainsInvalidTypes()

testResolveFailsIfTypedArrayContainsInvalidTypes() 

testResolveFailsWithCorrectLevelsButWrongScalar()

testResolveFailsWithCorrectLevelsButWrongScalar() 

testResolveFailsIfInvalidType()

testResolveFailsIfInvalidType(  $actualType,   $allowedType,   $exceptionMessage) 

Parameters

$actualType
$allowedType
$exceptionMessage

provideInvalidTypes()

provideInvalidTypes() 

testResolveSucceedsIfValidType()

testResolveSucceedsIfValidType() 

testResolveFailsIfInvalidTypeMultiple()

testResolveFailsIfInvalidTypeMultiple() 

testResolveSucceedsIfValidTypeMultiple()

testResolveSucceedsIfValidTypeMultiple() 

testResolveSucceedsIfInstanceOfClass()

testResolveSucceedsIfInstanceOfClass() 

testResolveSucceedsIfTypedArray()

testResolveSucceedsIfTypedArray() 

testResolveFailsIfNotInstanceOfClass()

testResolveFailsIfNotInstanceOfClass() 

testAddAllowedTypesFailsIfUnknownOption()

testAddAllowedTypesFailsIfUnknownOption() 

testFailIfAddAllowedTypesFromLazyOption()

testFailIfAddAllowedTypesFromLazyOption() 

testResolveFailsIfInvalidAddedType()

testResolveFailsIfInvalidAddedType() 

testResolveSucceedsIfValidAddedType()

testResolveSucceedsIfValidAddedType() 

testResolveFailsIfInvalidAddedTypeMultiple()

testResolveFailsIfInvalidAddedTypeMultiple() 

testResolveSucceedsIfValidAddedTypeMultiple()

testResolveSucceedsIfValidAddedTypeMultiple() 

testAddAllowedTypesDoesNotOverwrite()

testAddAllowedTypesDoesNotOverwrite() 

testAddAllowedTypesDoesNotOverwrite2()

testAddAllowedTypesDoesNotOverwrite2() 

testSetAllowedValuesFailsIfUnknownOption()

testSetAllowedValuesFailsIfUnknownOption() 

testFailIfSetAllowedValuesFromLazyOption()

testFailIfSetAllowedValuesFromLazyOption() 

testResolveFailsIfInvalidValue()

testResolveFailsIfInvalidValue() 

testResolveFailsIfInvalidValueIsNull()

testResolveFailsIfInvalidValueIsNull() 

testResolveFailsIfInvalidValueStrict()

testResolveFailsIfInvalidValueStrict() 

testResolveSucceedsIfValidValue()

testResolveSucceedsIfValidValue() 

testResolveSucceedsIfValidValueIsNull()

testResolveSucceedsIfValidValueIsNull() 

testResolveFailsIfInvalidValueMultiple()

testResolveFailsIfInvalidValueMultiple() 

testResolveSucceedsIfValidValueMultiple()

testResolveSucceedsIfValidValueMultiple() 

testResolveFailsIfClosureReturnsFalse()

testResolveFailsIfClosureReturnsFalse() 

testResolveSucceedsIfClosureReturnsTrue()

testResolveSucceedsIfClosureReturnsTrue() 

testResolveFailsIfAllClosuresReturnFalse()

testResolveFailsIfAllClosuresReturnFalse() 

testResolveSucceedsIfAnyClosureReturnsTrue()

testResolveSucceedsIfAnyClosureReturnsTrue() 

testAddAllowedValuesFailsIfUnknownOption()

testAddAllowedValuesFailsIfUnknownOption() 

testFailIfAddAllowedValuesFromLazyOption()

testFailIfAddAllowedValuesFromLazyOption() 

testResolveFailsIfInvalidAddedValue()

testResolveFailsIfInvalidAddedValue() 

testResolveSucceedsIfValidAddedValue()

testResolveSucceedsIfValidAddedValue() 

testResolveSucceedsIfValidAddedValueIsNull()

testResolveSucceedsIfValidAddedValueIsNull() 

testResolveFailsIfInvalidAddedValueMultiple()

testResolveFailsIfInvalidAddedValueMultiple() 

testResolveSucceedsIfValidAddedValueMultiple()

testResolveSucceedsIfValidAddedValueMultiple() 

testAddAllowedValuesDoesNotOverwrite()

testAddAllowedValuesDoesNotOverwrite() 

testAddAllowedValuesDoesNotOverwrite2()

testAddAllowedValuesDoesNotOverwrite2() 

testResolveFailsIfAllAddedClosuresReturnFalse()

testResolveFailsIfAllAddedClosuresReturnFalse() 

testResolveSucceedsIfAnyAddedClosureReturnsTrue()

testResolveSucceedsIfAnyAddedClosureReturnsTrue() 

testResolveSucceedsIfAnyAddedClosureReturnsTrue2()

testResolveSucceedsIfAnyAddedClosureReturnsTrue2() 

testSetNormalizerReturnsThis()

testSetNormalizerReturnsThis() 

testSetNormalizerClosure()

testSetNormalizerClosure() 

testSetNormalizerFailsIfUnknownOption()

testSetNormalizerFailsIfUnknownOption() 

testFailIfSetNormalizerFromLazyOption()

testFailIfSetNormalizerFromLazyOption() 

testNormalizerReceivesSetOption()

testNormalizerReceivesSetOption() 

testNormalizerReceivesPassedOption()

testNormalizerReceivesPassedOption() 

testValidateTypeBeforeNormalization()

testValidateTypeBeforeNormalization() 

testValidateValueBeforeNormalization()

testValidateValueBeforeNormalization() 

testNormalizerCanAccessOtherOptions()

testNormalizerCanAccessOtherOptions() 

testNormalizerCanAccessLazyOptions()

testNormalizerCanAccessLazyOptions() 

testFailIfCyclicDependencyBetweenNormalizers()

testFailIfCyclicDependencyBetweenNormalizers() 

testFailIfCyclicDependencyBetweenNormalizerAndLazyOption()

testFailIfCyclicDependencyBetweenNormalizerAndLazyOption() 

testCaughtExceptionFromNormalizerDoesNotCrashOptionResolver()

testCaughtExceptionFromNormalizerDoesNotCrashOptionResolver() 

testCaughtExceptionFromLazyDoesNotCrashOptionResolver()

testCaughtExceptionFromLazyDoesNotCrashOptionResolver() 

testInvokeEachNormalizerOnlyOnce()

testInvokeEachNormalizerOnlyOnce() 

testNormalizerNotCalledForUnsetOptions()

testNormalizerNotCalledForUnsetOptions() 

testSetDefaultsReturnsThis()

testSetDefaultsReturnsThis() 

testSetDefaults()

testSetDefaults() 

testFailIfSetDefaultsFromLazyOption()

testFailIfSetDefaultsFromLazyOption() 

testRemoveReturnsThis()

testRemoveReturnsThis() 

testRemoveSingleOption()

testRemoveSingleOption() 

testRemoveMultipleOptions()

testRemoveMultipleOptions() 

testRemoveLazyOption()

testRemoveLazyOption() 

testRemoveNormalizer()

testRemoveNormalizer() 

testRemoveAllowedTypes()

testRemoveAllowedTypes() 

testRemoveAllowedValues()

testRemoveAllowedValues() 

testFailIfRemoveFromLazyOption()

testFailIfRemoveFromLazyOption() 

testRemoveUnknownOptionIgnored()

testRemoveUnknownOptionIgnored() 

testClearReturnsThis()

testClearReturnsThis() 

testClearRemovesAllOptions()

testClearRemovesAllOptions() 

testClearLazyOption()

testClearLazyOption() 

testClearNormalizer()

testClearNormalizer() 

testClearAllowedTypes()

testClearAllowedTypes() 

testClearAllowedValues()

testClearAllowedValues() 

testFailIfClearFromLazyption()

testFailIfClearFromLazyption() 

testClearOptionAndNormalizer()

testClearOptionAndNormalizer() 

testArrayAccess()

testArrayAccess() 

testArrayAccessGetFailsOutsideResolve()

testArrayAccessGetFailsOutsideResolve() 

testArrayAccessExistsFailsOutsideResolve()

testArrayAccessExistsFailsOutsideResolve() 

testArrayAccessSetNotSupported()

testArrayAccessSetNotSupported() 

testArrayAccessUnsetNotSupported()

testArrayAccessUnsetNotSupported() 

testFailIfGetNonExisting()

testFailIfGetNonExisting() 

testFailIfGetDefinedButUnset()

testFailIfGetDefinedButUnset() 

testFailIfCyclicDependency()

testFailIfCyclicDependency() 

testCount()

testCount() 

testCountFailsOutsideResolve()

testCountFailsOutsideResolve() 

In resolve() we count the options that are actually set (which may be only a subset of the defined options). Outside of resolve(), it's not clear what is counted.

testNestedArrays()

testNestedArrays() 

testNested2Arrays()

testNested2Arrays() 

testNestedArraysException()

testNestedArraysException() 

testNestedArrayException1()

testNestedArrayException1() 

testNestedArrayException2()

testNestedArrayException2() 

testNestedArrayException3()

testNestedArrayException3() 

testNestedArrayException4()

testNestedArrayException4() 

testNestedArrayException5()

testNestedArrayException5() 

setUp()

setUp()