PHP Class Kraken\_Unit\Config\ConfigTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method 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 method

public createConfig ( $config = null, callable $handler = null ) : Config
$handler callable
return Kraken\Config\Config

getExpanded() public method

public getExpanded ( ) : array
return array

getRaw() public method

public getRaw ( ) : array
return array

testApiAll_ReturnsWholeConfig() public method

testApiConstructor_SetsConfigAndHandler() public method

testApiDestructor_DoesNotThrowExceptions() public method

testApiExists_ReturnsFalse_ForNonExistingKey() public method

testApiExists_ReturnsTrue_ForExistingKey() public method

testApiGetConfiguration_GetsConfiguration() public method

testApiGetDefaultHandler_ReturnsDefaultHandler() public method

testApiGetOverwriteHandler_GetsOverwriteHandler() public method

testApiGet_ReturnsAllElements_WhenKeyIsEmptyString() public method

testApiGet_ReturnsDefault_WhenElementDoesNotExist() public method

testApiGet_ReturnsElement_WhenElementDoesExist() public method

testApiMerge_MergesConfigOnTopOfExistsing() public method

testApiMerge_UsesHandler_WhenHandlerIsProvided() public method

testApiOverwrite_OverwritesConfig_UsingOverwriteHandler() public method

testApiOverwrite_OverwritesConfig_UsingPassedHandler() public method

testApiRemove_DoesNothing_WhenElementDoesNotExist() public method

testApiRemove_RemovesElement_WhenElementDoesExist() public method

testApiSetConfiguration_SetsConfiguration() public method

testApiSetOverwriteHandler_SetsDefaultHandler_WhenNoHandlerPassed() public method

testApiSetOverwriteHandler_SetsOverwriteHandler() public method

testApiSet_SetsValue_WhenItExists() public method