PHP Class Kraken\_Unit\Config\ConfigTest

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

Méthodes publiques

Méthode Description
createConfig ( $config = null, callable $handler = null ) : Config
getExpanded ( ) : array
getRaw ( ) : array
testApiAll_ReturnsWholeConfig ( )
testApiConstructor_SetsConfigAndHandler ( )
testApiDestructor_DoesNotThrowExceptions ( )
testApiExists_ReturnsFalse_ForNonExistingKey ( )
testApiExists_ReturnsTrue_ForExistingKey ( )
testApiGetConfiguration_GetsConfiguration ( )
testApiGetDefaultHandler_ReturnsDefaultHandler ( )
testApiGetOverwriteHandler_GetsOverwriteHandler ( )
testApiGet_ReturnsAllElements_WhenKeyIsEmptyString ( )
testApiGet_ReturnsDefault_WhenElementDoesNotExist ( )
testApiGet_ReturnsElement_WhenElementDoesExist ( )
testApiMerge_MergesConfigOnTopOfExistsing ( )
testApiMerge_UsesHandler_WhenHandlerIsProvided ( )
testApiOverwrite_OverwritesConfig_UsingOverwriteHandler ( )
testApiOverwrite_OverwritesConfig_UsingPassedHandler ( )
testApiRemove_DoesNothing_WhenElementDoesNotExist ( )
testApiRemove_RemovesElement_WhenElementDoesExist ( )
testApiSetConfiguration_SetsConfiguration ( )
testApiSetOverwriteHandler_SetsDefaultHandler_WhenNoHandlerPassed ( )
testApiSetOverwriteHandler_SetsOverwriteHandler ( )
testApiSet_SetsValue_WhenItExists ( )

Method Details

createConfig() public méthode

public createConfig ( $config = null, callable $handler = null ) : Config
$handler callable
Résultat Kraken\Config\Config

getExpanded() public méthode

public getExpanded ( ) : array
Résultat array

getRaw() public méthode

public getRaw ( ) : array
Résultat array

testApiAll_ReturnsWholeConfig() public méthode

testApiConstructor_SetsConfigAndHandler() public méthode

testApiDestructor_DoesNotThrowExceptions() public méthode

testApiExists_ReturnsFalse_ForNonExistingKey() public méthode

testApiExists_ReturnsTrue_ForExistingKey() public méthode

testApiGetConfiguration_GetsConfiguration() public méthode

testApiGetDefaultHandler_ReturnsDefaultHandler() public méthode

testApiGetOverwriteHandler_GetsOverwriteHandler() public méthode

testApiGet_ReturnsAllElements_WhenKeyIsEmptyString() public méthode

testApiGet_ReturnsDefault_WhenElementDoesNotExist() public méthode

testApiGet_ReturnsElement_WhenElementDoesExist() public méthode

testApiMerge_MergesConfigOnTopOfExistsing() public méthode

testApiMerge_UsesHandler_WhenHandlerIsProvided() public méthode

testApiOverwrite_OverwritesConfig_UsingOverwriteHandler() public méthode

testApiOverwrite_OverwritesConfig_UsingPassedHandler() public méthode

testApiRemove_DoesNothing_WhenElementDoesNotExist() public méthode

testApiRemove_RemovesElement_WhenElementDoesExist() public méthode

testApiSetConfiguration_SetsConfiguration() public méthode

testApiSetOverwriteHandler_SetsDefaultHandler_WhenNoHandlerPassed() public méthode

testApiSetOverwriteHandler_SetsOverwriteHandler() public méthode

testApiSet_SetsValue_WhenItExists() public méthode