PHP Class Kraken\_Unit\Core\CoreTest

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

Public Methods

Method Description
createCore ( mixed[] $args = [], string[] | null $methods = null ) : Core | PHPUnit_Framework_MockObject_MockObject
createProvider ( ) : ServiceProvider | PHPUnit_Framework_MockObject_MockObject
createRegister ( Core $core, string[] $methods = [] ) : ServiceRegister | PHPUnit_Framework_MockObject_MockObject
testApiBootProviders_BootsProviders ( )
testApiBoot_BootsProviders ( )
testApiBoot_ThrowsException_WhenApiBootProvidersThrowsException ( )
testApiConfig_MergesConfig ( )
testApiConstructor_CreatesCore ( )
testApiDestructor_DoesNotThrowException ( )
testApiFlushAliases_FlushesAliases ( )
testApiFlushProviders_FlushesProviders ( )
testApiGetAlias_ReturnsAlias ( )
testApiGetAliases_ReturnsAliases ( )
testApiGetBasePath_ReturnsBasePath ( )
testApiGetDataDir_ReturnsDataDir ( )
testApiGetDataPath_ReturnsDataPath ( )
testApiGetDefaultAliases_ReturnsEmptyArray ( )
testApiGetDefaultProviders_ReturnsEmptyArray ( )
testApiGetProvider_GetsProvider ( )
testApiGetProviders_GetsProviders ( )
testApiGetServices_GetsServices ( )
testApiGetType_ReturnsRuntimeUnit ( )
testApiGetVersion_ReturnsVersion ( )
testApiRegisterAlias_RegistersAlias ( )
testApiRegisterAlias_ThrowsException_WhenModelThrowsException ( )
testApiRegisterAliases_RegistersAliases ( )
testApiRegisterProvider_RegistersProvider ( )
testApiRegisterProvider_ThrowsException_WhenModelThrowsException ( )
testApiRegisterProviders_RegistersProviders ( )
testApiUnregisterAlias_ThrowsException_WhenModelThrowsException ( )
testApiUnregisterAlias_UnregistersAlias ( )
testApiUnregisterProvider_ThrowsException_WhenModelThrowsException ( )
testApiUnregisterProvider_UnregistersProvider ( )
testCaseRuntimeUnitConst_HasUndefinedRuntimeUnit ( )
testCaseVersionConst_HasVersion ( )

Method Details

createCore() public method

public createCore ( mixed[] $args = [], string[] | null $methods = null ) : Core | PHPUnit_Framework_MockObject_MockObject
$args mixed[]
$methods string[] | null
return Kraken\Core\Core | PHPUnit_Framework_MockObject_MockObject

createProvider() public method

public createProvider ( ) : ServiceProvider | PHPUnit_Framework_MockObject_MockObject
return Kraken\Container\ServiceProvider | PHPUnit_Framework_MockObject_MockObject

createRegister() public method

public createRegister ( Core $core, string[] $methods = [] ) : ServiceRegister | PHPUnit_Framework_MockObject_MockObject
$core Kraken\Core\Core
$methods string[]
return Kraken\Container\ServiceRegister | PHPUnit_Framework_MockObject_MockObject

testApiBootProviders_BootsProviders() public method

testApiBoot_BootsProviders() public method

testApiBoot_ThrowsException_WhenApiBootProvidersThrowsException() public method

testApiConfig_MergesConfig() public method

testApiConstructor_CreatesCore() public method

testApiDestructor_DoesNotThrowException() public method

testApiFlushAliases_FlushesAliases() public method

testApiFlushProviders_FlushesProviders() public method

testApiGetAlias_ReturnsAlias() public method

testApiGetAliases_ReturnsAliases() public method

testApiGetBasePath_ReturnsBasePath() public method

testApiGetDataDir_ReturnsDataDir() public method

testApiGetDataPath_ReturnsDataPath() public method

testApiGetDefaultAliases_ReturnsEmptyArray() public method

testApiGetDefaultProviders_ReturnsEmptyArray() public method

testApiGetProvider_GetsProvider() public method

testApiGetProviders_GetsProviders() public method

testApiGetServices_GetsServices() public method

testApiGetType_ReturnsRuntimeUnit() public method

testApiGetVersion_ReturnsVersion() public method

testApiRegisterAlias_RegistersAlias() public method

testApiRegisterAlias_ThrowsException_WhenModelThrowsException() public method

testApiRegisterAliases_RegistersAliases() public method

testApiRegisterProvider_RegistersProvider() public method

testApiRegisterProvider_ThrowsException_WhenModelThrowsException() public method

testApiRegisterProviders_RegistersProviders() public method

testApiUnregisterAlias_ThrowsException_WhenModelThrowsException() public method

testApiUnregisterAlias_UnregistersAlias() public method

testApiUnregisterProvider_ThrowsException_WhenModelThrowsException() public method

testApiUnregisterProvider_UnregistersProvider() public method

testCaseRuntimeUnitConst_HasUndefinedRuntimeUnit() public method

testCaseVersionConst_HasVersion() public method