PHP Class Kraken\_Unit\Runtime\RuntimeManagerTest

Inheritance: extends Kraken\Test\TUnit
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
createRuntimeManager ( string[] $methods = [] ) : RuntimeManagerMock | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiCreateProcess_CallsModelMethod ( )
testApiCreateProcesses_CallsModelMethod ( )
testApiCreateThread_CallsModelMethod ( )
testApiCreateThreads_CallsModelMethod ( )
testApiDestroyProcess_CallsModelMethod ( )
testApiDestroyProcesses_CallsModelMethod ( )
testApiDestroyRuntime_DestroysProcess_WhenRuntimeIsProcess ( )
testApiDestroyRuntime_DestroysThread_WhenRuntimeIsThread ( )
testApiDestroyRuntime_RejectsPromise_WhenRuntimeDoesNotExist ( )
testApiDestroyRuntimes_CallsDestroyRuntimeOnEachPassedRuntime ( )
testApiDestroyThread_CallsModelMethod ( )
testApiDestroyThreads_CallsModelMethod ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsProcess_CallsModelMethod ( )
testApiExistsRuntime_ReturnsFalse_WhenBothManagersReturnsFalse ( )
testApiExistsRuntime_ReturnsTrue_WhenProcessManagerReturnsTrue ( )
testApiExistsRuntime_ReturnsTrue_WhenThreadManagerReturnsTrue ( )
testApiExistsThread_CallsModelMethod ( )
testApiFlushProcesses_CallsModelMethod ( )
testApiFlushRuntimes_FlushesRuntimes ( )
testApiFlushThreads_CallsModelMethod ( )
testApiGetProcesses_CallsModelMethod ( )
testApiGetRuntimes_ReturnsRuntimes ( )
testApiGetThreads_CallsModelMethod ( )
testApiStartProcess_CallsModelMethod ( )
testApiStartProcesses_CallsModelMethod ( )
testApiStartRuntime_RejectsPromise_WhenRuntimeDoesNotExist ( )
testApiStartRuntime_StartsProcess_WhenRuntimeIsProcess ( )
testApiStartRuntime_StartsThread_WhenRuntimeIsThread ( )
testApiStartRuntimes_CallsStartRuntimeOnEachPassedRuntime ( )
testApiStartThread_CallsModelMethod ( )
testApiStartThreads_CallsModelMethod ( )
testApiStopProcess_CallsModelMethod ( )
testApiStopProcesses_CallsModelMethod ( )
testApiStopRuntime_DestroysProcess_WhenRuntimeIsProcess ( )
testApiStopRuntime_DestroysThread_WhenRuntimeIsThread ( )
testApiStopRuntime_RejectsPromise_WhenRuntimeDoesNotExist ( )
testApiStopRuntimes_CallsStopRuntimeOnEachPassedRuntime ( )
testApiStopThread_CallsModelMethod ( )
testApiStopThreads_CallsModelMethod ( )

Method Details

createRuntimeManager() public method

public createRuntimeManager ( string[] $methods = [] ) : RuntimeManagerMock | PHPUnit_Framework_MockObject_MockObject
$methods string[]
return Kraken\_Unit\Runtime\_Mock\RuntimeManagerMock | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public method

testApiCreateProcess_CallsModelMethod() public method

testApiCreateProcesses_CallsModelMethod() public method

testApiCreateThread_CallsModelMethod() public method

testApiCreateThreads_CallsModelMethod() public method

testApiDestroyProcess_CallsModelMethod() public method

testApiDestroyProcesses_CallsModelMethod() public method

testApiDestroyRuntime_DestroysProcess_WhenRuntimeIsProcess() public method

testApiDestroyRuntime_DestroysThread_WhenRuntimeIsThread() public method

testApiDestroyRuntime_RejectsPromise_WhenRuntimeDoesNotExist() public method

testApiDestroyRuntimes_CallsDestroyRuntimeOnEachPassedRuntime() public method

testApiDestroyThread_CallsModelMethod() public method

testApiDestroyThreads_CallsModelMethod() public method

testApiDestructor_DoesNotThrowException() public method

testApiExistsProcess_CallsModelMethod() public method

testApiExistsRuntime_ReturnsFalse_WhenBothManagersReturnsFalse() public method

testApiExistsRuntime_ReturnsTrue_WhenProcessManagerReturnsTrue() public method

testApiExistsRuntime_ReturnsTrue_WhenThreadManagerReturnsTrue() public method

testApiExistsThread_CallsModelMethod() public method

testApiFlushProcesses_CallsModelMethod() public method

testApiFlushRuntimes_FlushesRuntimes() public method

testApiFlushThreads_CallsModelMethod() public method

testApiGetProcesses_CallsModelMethod() public method

testApiGetRuntimes_ReturnsRuntimes() public method

testApiGetThreads_CallsModelMethod() public method

testApiStartProcess_CallsModelMethod() public method

testApiStartProcesses_CallsModelMethod() public method

testApiStartRuntime_RejectsPromise_WhenRuntimeDoesNotExist() public method

testApiStartRuntime_StartsProcess_WhenRuntimeIsProcess() public method

testApiStartRuntime_StartsThread_WhenRuntimeIsThread() public method

testApiStartRuntimes_CallsStartRuntimeOnEachPassedRuntime() public method

testApiStartThread_CallsModelMethod() public method

testApiStartThreads_CallsModelMethod() public method

testApiStopProcess_CallsModelMethod() public method

testApiStopProcesses_CallsModelMethod() public method

testApiStopRuntime_DestroysProcess_WhenRuntimeIsProcess() public method

testApiStopRuntime_DestroysThread_WhenRuntimeIsThread() public method

testApiStopRuntime_RejectsPromise_WhenRuntimeDoesNotExist() public method

testApiStopRuntimes_CallsStopRuntimeOnEachPassedRuntime() public method

testApiStopThread_CallsModelMethod() public method

testApiStopThreads_CallsModelMethod() public method