PHP Class OrnoTest\ContainerTest

Inheritance: extends PHPUnit_Framework_TestCase
ファイルを表示 Open project: orno/di

Protected Properties

Property Type Description
$configArray

Public Methods

Method Description
testArrayAccessMapsToCorrectMethods ( )
testAutoResolvesNestedDependenciesWithAliasedInterface ( )
testCallDoesntThinksArrayTypeHintAreToBeResolvedByContainer ( )
testCallExecutesAnonymousFunction ( )
testCallExecutesCallableDefinedByArray ( )
testCallExecutesMethodsWithNamedParameters ( )
testCallExecutesNamedFunction ( )
testCallExecutesStaticMethod ( )
testCallFillsInDefaultParameterValues ( )
testCallMergesTypeHintedAndProvidedAttributes ( )
testCallResolvesTypeHintedArgument ( )
testCallThrowsExceptionWhenCannotResolveCallable ( )
testCallThrowsRuntimeExceptionIfParameterResolutionFails ( )
testContainerAcceptsArrayAccess ( )
testContainerAcceptsArrayWithKey ( )
testContainerDoesntAcceptArrayWithoutKey ( )
testContainerDoesntAcceptInvalidConfigType ( )
testContainerGetsFromCacheWhenAvailableAndEnabled ( )
testContainerResolvesRegisteredCallable ( )
testContainerSetsCacheWhenAvailableAndEnabled ( )
testEnablingAndDisablingCachingWorksCorrectly ( )
testExtendReturnsDefinitionForModificationWhenCalledWithAValidService ( )
testExtendThrowsExceptionWhenUnregisteredServiceIsGiven ( )
testExtendsThrowsExceptionWhenModifyingAnExistingSingleton ( )
testInjectsArgumentsAndInvokesMethods ( )
testInjectsRuntimeArgumentsAndInvokesMethods ( )
testReflectionInjectsDefaultValue ( )
testReflectionOnClassWithNoConstructorCreatesDefinition ( )
testReflectionOnNonClassThrowsException ( )
testReflectionThrowsExceptionForArgumentWithNoDefaultValue ( )
testSingletonReturnsSameInstanceEverytime ( )
testStoresAndInvokesClosure ( )
testStoresAndInvokesClosureWithDefinedArguments ( )
testStoresAndReturnsArbitraryValues ( )

Method Details

testArrayAccessMapsToCorrectMethods() public method

testAutoResolvesNestedDependenciesWithAliasedInterface() public method

testCallDoesntThinksArrayTypeHintAreToBeResolvedByContainer() public method

testCallExecutesAnonymousFunction() public method

testCallExecutesCallableDefinedByArray() public method

testCallExecutesMethodsWithNamedParameters() public method

testCallExecutesNamedFunction() public method

testCallExecutesStaticMethod() public method

testCallFillsInDefaultParameterValues() public method

testCallMergesTypeHintedAndProvidedAttributes() public method

testCallResolvesTypeHintedArgument() public method

testCallThrowsExceptionWhenCannotResolveCallable() public method

testCallThrowsRuntimeExceptionIfParameterResolutionFails() public method

testContainerAcceptsArrayAccess() public method

testContainerAcceptsArrayWithKey() public method

testContainerDoesntAcceptArrayWithoutKey() public method

testContainerDoesntAcceptInvalidConfigType() public method

testContainerGetsFromCacheWhenAvailableAndEnabled() public method

testContainerResolvesRegisteredCallable() public method

testContainerSetsCacheWhenAvailableAndEnabled() public method

testEnablingAndDisablingCachingWorksCorrectly() public method

testExtendReturnsDefinitionForModificationWhenCalledWithAValidService() public method

testExtendThrowsExceptionWhenUnregisteredServiceIsGiven() public method

testExtendsThrowsExceptionWhenModifyingAnExistingSingleton() public method

testInjectsArgumentsAndInvokesMethods() public method

testInjectsRuntimeArgumentsAndInvokesMethods() public method

testReflectionInjectsDefaultValue() public method

testReflectionOnClassWithNoConstructorCreatesDefinition() public method

testReflectionOnNonClassThrowsException() public method

testReflectionThrowsExceptionForArgumentWithNoDefaultValue() public method

testSingletonReturnsSameInstanceEverytime() public method

testStoresAndInvokesClosure() public method

testStoresAndInvokesClosureWithDefinedArguments() public method

testStoresAndReturnsArbitraryValues() public method

Property Details

$configArray protected_oe property

protected $configArray