PHP Class Kraken\_Module\Container\ContainerTest

Inheritance: extends Kraken\Test\TModule
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createContainer ( ) : Container
testApiAlias_CreatesAliasToOtherDefinition ( )
testApiAlias_RespectsInstantiationRestrictionsOfOtherDefinition ( )
testApiAlias_ThrowsException_WhenOtherDefinitionDoesNotExist ( )
testApiBind_BindsClass ( )
testApiBind_BindsFactoryMethod ( )
testApiBind_BindsInvokableObjectAsObjectNotCallable ( )
testApiBind_BindsObject ( )
testApiBind_BindsPrimitive ( )
testApiBind_BindsToAlias ( )
testApiBind_BindsToInterfaceDefinition ( )
testApiBind_BindsToObjectDefinition ( )
testApiBind_ThrowsException_WhenInvalidReferenceSet ( )
testApiCall_ShouldCallMethod_WithAutowiredDependencies ( )
testApiCall_ShouldCallMethod_WithDefaultDependencies ( )
testApiCall_ShouldCallMethod_WithInjectedDependencies ( )
testApiCall_ThrowsException_WhenDefinitionAndCallParametersDoesNotMatch ( )
testApiCall_ThrowsException_WhenDependenciesCouldNotBeResolvedBecauseOfLackOfHint ( )
testApiCall_ThrowsException_WhenDependenciesCouldNotBeResolvedBecauseOfNotInitializableClass ( )
testApiExists_ReturnsFalse_WhenCustomMakeDefinitionIsNonExistingInterface ( )
testApiExists_ReturnsFalse_WhenCustomMakeDefinitionIsNotRegisteredAlias ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsClass ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsFactoryMethod ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsInterface ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsObject ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsParam ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsSingleton ( )
testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsWired ( )
testApiFactory_BindsInvokableObjectAsCallable ( )
testApiFactory_FiresFactoryMethodEachTime ( )
testApiFactory_RegistersFactoryMethod_WithDefaultParameters ( )
testApiFactory_RegistersFactoryMethod_WithoutDefaultParameters ( )
testApiInstance_BindsInvokableObjectAsObjectNotCallable ( )
testApiInstance_BindsObject_ToAliasDefinition ( )
testApiInstance_BindsObject_ToClassDefinition ( )
testApiInstance_BindsObject_ToInterfaceDefinition ( )
testApiInstance_ThowsException_WhenTriedToBindClass ( )
testApiInstance_ThrowsException_WhenTriedToBindFactoryMethod ( )
testApiInstance_ThrowsException_WhenTriedToBindPrimitive ( )
testApiMake_GetsObject ( )
testApiMake_GetsParam ( )
testApiMake_InvokesFactoryMethod ( )
testApiMake_MakesAliasedDefinition ( )
testApiMake_MakesClass ( )
testApiMake_SupportsFullAutowiring ( )
testApiMake_SupportsPartialAutowiring ( )
testApiMake_TreatsInvokableAsObjectNotCallable ( )
testApiParam_SetsParam_WhenParamIsPrimitive ( )
testApiParam_ThrowsException_WhenAliasIsClass ( )
testApiParam_ThrowsException_WhenParamIsCallable ( )
testApiParam_ThrowsException_WhenParamIsObject ( )
testApiRemove_DoesNothing_WhenPassedNonExistingDefinition ( )
testApiRemove_RemovesDefinition_WhenDefinitionPointsToFactoryMethod ( )
testApiRemove_RemovesDefinition_WhenDefinitionPointsToObject ( )
testApiRemove_RemovesDefinition_WhenDefinitionPointsToPrimitive ( )
testApiShare_SetsDefinitionAsSingleton ( )
testApiShare_SetsDefinitionAsSingleton_WithDefaultParams ( )
testApiShare_SetsFactoryMethodAsSingleton ( )
testApiShare_SetsPrimitiveAsSingleton ( )
testApiShare_ThrowsException_WhenInvalidReferenceSet ( )
testApiShare_ThrowsException_WhenTriedToSetObject ( )
testApiWire_BindsDefaultParamsToMakeDefinition ( )
testApiWire_ThrowsException_WhenNonInitializableOrNonExistingClassPassed ( )

Method Details

createContainer() public méthode

public createContainer ( ) : Container
Résultat Kraken\Container\Container

testApiAlias_CreatesAliasToOtherDefinition() public méthode

testApiAlias_RespectsInstantiationRestrictionsOfOtherDefinition() public méthode

testApiAlias_ThrowsException_WhenOtherDefinitionDoesNotExist() public méthode

testApiBind_BindsClass() public méthode

testApiBind_BindsFactoryMethod() public méthode

testApiBind_BindsInvokableObjectAsObjectNotCallable() public méthode

testApiBind_BindsObject() public méthode

testApiBind_BindsPrimitive() public méthode

testApiBind_BindsToAlias() public méthode

testApiBind_BindsToInterfaceDefinition() public méthode

testApiBind_BindsToObjectDefinition() public méthode

testApiBind_ThrowsException_WhenInvalidReferenceSet() public méthode

testApiCall_ShouldCallMethod_WithAutowiredDependencies() public méthode

testApiCall_ShouldCallMethod_WithDefaultDependencies() public méthode

testApiCall_ShouldCallMethod_WithInjectedDependencies() public méthode

testApiCall_ThrowsException_WhenDefinitionAndCallParametersDoesNotMatch() public méthode

testApiCall_ThrowsException_WhenDependenciesCouldNotBeResolvedBecauseOfLackOfHint() public méthode

testApiCall_ThrowsException_WhenDependenciesCouldNotBeResolvedBecauseOfNotInitializableClass() public méthode

testApiExists_ReturnsFalse_WhenCustomMakeDefinitionIsNonExistingInterface() public méthode

testApiExists_ReturnsFalse_WhenCustomMakeDefinitionIsNotRegisteredAlias() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsClass() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsFactoryMethod() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsInterface() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsObject() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsParam() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsSingleton() public méthode

testApiExists_ReturnsTrue_WhenCustomMakeDefinitionIsWired() public méthode

testApiFactory_BindsInvokableObjectAsCallable() public méthode

testApiFactory_FiresFactoryMethodEachTime() public méthode

testApiFactory_RegistersFactoryMethod_WithDefaultParameters() public méthode

testApiFactory_RegistersFactoryMethod_WithoutDefaultParameters() public méthode

testApiInstance_BindsInvokableObjectAsObjectNotCallable() public méthode

testApiInstance_BindsObject_ToAliasDefinition() public méthode

testApiInstance_BindsObject_ToClassDefinition() public méthode

testApiInstance_BindsObject_ToInterfaceDefinition() public méthode

testApiInstance_ThowsException_WhenTriedToBindClass() public méthode

testApiInstance_ThrowsException_WhenTriedToBindFactoryMethod() public méthode

testApiInstance_ThrowsException_WhenTriedToBindPrimitive() public méthode

testApiMake_GetsObject() public méthode

testApiMake_GetsParam() public méthode

testApiMake_InvokesFactoryMethod() public méthode

testApiMake_MakesAliasedDefinition() public méthode

testApiMake_MakesClass() public méthode

testApiMake_SupportsFullAutowiring() public méthode

testApiMake_SupportsPartialAutowiring() public méthode

testApiMake_TreatsInvokableAsObjectNotCallable() public méthode

testApiParam_SetsParam_WhenParamIsPrimitive() public méthode

testApiParam_ThrowsException_WhenAliasIsClass() public méthode

testApiParam_ThrowsException_WhenParamIsCallable() public méthode

testApiParam_ThrowsException_WhenParamIsObject() public méthode

testApiRemove_DoesNothing_WhenPassedNonExistingDefinition() public méthode

testApiRemove_RemovesDefinition_WhenDefinitionPointsToFactoryMethod() public méthode

testApiRemove_RemovesDefinition_WhenDefinitionPointsToObject() public méthode

testApiRemove_RemovesDefinition_WhenDefinitionPointsToPrimitive() public méthode

testApiShare_SetsDefinitionAsSingleton() public méthode

testApiShare_SetsDefinitionAsSingleton_WithDefaultParams() public méthode

testApiShare_SetsFactoryMethodAsSingleton() public méthode

testApiShare_SetsPrimitiveAsSingleton() public méthode

testApiShare_ThrowsException_WhenInvalidReferenceSet() public méthode

testApiShare_ThrowsException_WhenTriedToSetObject() public méthode

testApiWire_BindsDefaultParamsToMakeDefinition() public méthode

testApiWire_ThrowsException_WhenNonInitializableOrNonExistingClassPassed() public méthode