PHP Class Kraken\_Unit\Runtime\Container\Manager\ThreadManagerBaseTest

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

Méthodes publiques

Méthode Description
createThreadManager ( string[] $methods = [] ) : ThreadManagerBase | PHPUnit_Framework_MockObject_MockObject
getCommand ( ) : RuntimeCommand
testApiConstructor_CreatesInstance ( )
testApiCreateThread_RecreatesThreadWithForceHard_WhenThreadDoesExistAndForceIsForceHard ( )
testApiCreateThread_RecreatesThreadWithForceSoft_WhenThreadDoesExistAndForceIsForceSoft ( )
testApiCreateThread_RecreatesThreadWithForce_WhenThreadDoesExistAndForceIsForce ( )
testApiCreateThread_RejectsPromise_WhenThreadDoesExistAndForceIsDefault ( )
testApiCreateThread_RejectsPromise_WhenThreadDoesNotExistAndNameIsNull ( )
testApiCreateThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeCreated ( )
testApiCreateThreads_ResolvesPromise_WhenAllThreadsAreCreated ( )
testApiDestroyThread_RejectsPromise_WhenThreadDoesExistAndForceFlagIsDestroyKeep ( )
testApiDestroyThread_ResolvesPromise_WhenThreadDoesNotExist ( )
testApiDestroyThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeDestroyed ( )
testApiDestroyThreads_ResolvesPromise_WhenAllThreadsAreDestroyed ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsThread_ReturnsFalse_WhenThreadDoesNotExist ( )
testApiExistsThread_ReturnsTrue_WhenThreadDoesExist ( )
testApiFlushThreads_FlushesThreads_WhenFlagIsOtherThanDestroyKeep ( )
testApiFlushThreads_RejectsPromise_WhenFlagIsDestroyKeep ( )
testApiGetThreads_ReturnsFulfilledPromiseThatContainsListOfThreads ( )
testApiStartThread_InvokesValidCommand ( )
testApiStartThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeStarted ( )
testApiStartThreads_ResolvesPromise_WhenAllThreadsAreStarted ( )
testApiStopThread_InvokesValidCommand ( )
testApiStopThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeStopped ( )
testApiStopThreads_ResolvesPromise_WhenAllThreadsAreStopped ( )
testProtectedApiAllocateThread_AllocatesThreadAndReturnsTrue ( )
testProtectedApiCreateRequest_CreatesRequest ( )
testProtectedApiFreeThread_FreesThreadAndReturnsTrue ( )

Method Details

createThreadManager() public méthode

public createThreadManager ( string[] $methods = [] ) : ThreadManagerBase | PHPUnit_Framework_MockObject_MockObject
$methods string[]
Résultat Kraken\Runtime\Container\Manager\ThreadManagerBase | PHPUnit_Framework_MockObject_MockObject

getCommand() public méthode

public getCommand ( ) : RuntimeCommand
Résultat Kraken\Runtime\RuntimeCommand

testApiConstructor_CreatesInstance() public méthode

testApiCreateThread_RecreatesThreadWithForceHard_WhenThreadDoesExistAndForceIsForceHard() public méthode

testApiCreateThread_RecreatesThreadWithForceSoft_WhenThreadDoesExistAndForceIsForceSoft() public méthode

testApiCreateThread_RecreatesThreadWithForce_WhenThreadDoesExistAndForceIsForce() public méthode

testApiCreateThread_RejectsPromise_WhenThreadDoesExistAndForceIsDefault() public méthode

testApiCreateThread_RejectsPromise_WhenThreadDoesNotExistAndNameIsNull() public méthode

testApiCreateThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeCreated() public méthode

testApiCreateThreads_ResolvesPromise_WhenAllThreadsAreCreated() public méthode

testApiDestroyThread_RejectsPromise_WhenThreadDoesExistAndForceFlagIsDestroyKeep() public méthode

testApiDestroyThread_ResolvesPromise_WhenThreadDoesNotExist() public méthode

testApiDestroyThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeDestroyed() public méthode

testApiDestroyThreads_ResolvesPromise_WhenAllThreadsAreDestroyed() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiExistsThread_ReturnsFalse_WhenThreadDoesNotExist() public méthode

testApiExistsThread_ReturnsTrue_WhenThreadDoesExist() public méthode

testApiFlushThreads_FlushesThreads_WhenFlagIsOtherThanDestroyKeep() public méthode

testApiFlushThreads_RejectsPromise_WhenFlagIsDestroyKeep() public méthode

testApiGetThreads_ReturnsFulfilledPromiseThatContainsListOfThreads() public méthode

testApiStartThread_InvokesValidCommand() public méthode

testApiStartThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeStarted() public méthode

testApiStartThreads_ResolvesPromise_WhenAllThreadsAreStarted() public méthode

testApiStopThread_InvokesValidCommand() public méthode

testApiStopThreads_RejectsPromise_WhenAtLeastOneThreadCouldNotBeStopped() public méthode

testApiStopThreads_ResolvesPromise_WhenAllThreadsAreStopped() public méthode

testProtectedApiAllocateThread_AllocatesThreadAndReturnsTrue() public méthode

testProtectedApiCreateRequest_CreatesRequest() public méthode

testProtectedApiFreeThread_FreesThreadAndReturnsTrue() public méthode