PHP 클래스 Kraken\_Unit\Config\ConfigTest

상속: extends Kraken\Test\TUnit
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
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 ( )

메소드 상세

createConfig() 공개 메소드

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

getExpanded() 공개 메소드

public getExpanded ( ) : array
리턴 array

getRaw() 공개 메소드

public getRaw ( ) : array
리턴 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() 공개 메소드