PHP Class Kraken\_Unit\Channel\ChannelCompositeTest

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

Méthodes publiques

Méthode Description
createBus ( string $name = 'name', string[] $methods = [] ) : Channel | PHPUnit_Framework_MockObject_MockObject
createChannel ( Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] $buses = [], string[] | null $methods = null ) : ChannelComposite | PHPUnit_Framework_MockObject_MockObject
createLoop ( string[] | null $methods = null ) : Loop | PHPUnit_Framework_MockObject_MockObject
createRouter ( string[] | null $methods = null ) : RouterComposite | PHPUnit_Framework_MockObject_MockObject
eventsProvider ( ) : string[][]
prepareBus ( string $name = 'name', string[] | null $methods = [] ) : Channel | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_CreatesInstance ( )
testApiCreateProtocol_CreatesProtocol_WhenNullPassed ( )
testApiCreateProtocol_CreatesProtocol_WhenStringPassed ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsBus_ReturnsFalse_WhenBusDoesNotExist ( )
testApiExistsBus_ReturnsTrue_WhenBusDoesExist ( )
testApiFilterConnected_ReturnsEmptyArray_WhenNoBusSet ( )
testApiGetBus_ReturnsBus_WhenBusDoesExist ( )
testApiGetBus_ThrowsException_WhenBusDoesNotExist ( )
testApiGetBuses_ReturnsArrayOfBuses_WhenAtLeastOneBusIsSet ( )
testApiGetBuses_ReturnsEmptyArray_WhenNoBusIsSet ( )
testApiGetConnected_ReturnsEmptyArray_WhenNoBusSet ( )
testApiGetConnected_ReturnsUniqueArrayOfConnectedNames ( )
testApiHandlePushAsync_ReturnsFalseAndDoesNotEmitEvents_WhenAllBusesReturnFalse ( )
testApiHandlePushAsync_ReturnsTrueAndDoesEmitsEvents_WhenAtLeastOneBusReturnTrue ( )
testApiHandlePushRequest_ReturnsFalseAndDoesNotEmitEvents_WhenAllBusesReturnFalse ( )
testApiHandlePushRequest_ReturnsTrueAndDoesEmitsEvents_WhenAtLeastOneBusReturnTrue ( )
testApiHandleSendAsync_HandlesMessageUsingOutput ( )
testApiHandleSendRequest_HandlesMessagUsingOutput ( )
testApiInput_ReturnsRouterInputBus ( )
testApiIsConnected_ReturnsFalse_WhenNoneBusIsSet ( )
testApiIsConnected_ReturnsFalse_WhenNoneBusReturnsTrue ( )
testApiIsConnected_ReturnsTrue_WhenAtLeastOneBusReturnsTrue ( )
testApiIsStarted_ReturnsEmptyArray_WhenNoneBusIsSet ( )
testApiIsStarted_ReturnsStatusesArray ( )
testApiIsStopped_ReturnsEmptyArray_WhenNoneBusIsSet ( )
testApiIsStopped_ReturnsStatusesArray ( )
testApiMatchConnected_ReturnsUniqueArrayOfConnectedNames ( )
testApiModel_ReturnsNull ( )
testApiName_ReturnsName ( )
testApiOutput_ReturnsRouterOutputBus ( )
testApiPull_PullsMessage ( )
testApiPushAsync_HandlesSendAsync ( )
testApiPushAsync_HandlesSendAsyncOnEachName ( )
testApiPushAsync_ReturnsArrayOfStatuses_WhenMultipleNamesSet ( )
testApiPushAsync_ReturnsEmptyArray_WhenNoneNameSet ( )
testApiPushAsync_ReturnsStatus_WhenSingleNameSet ( )
testApiPushRequest_HandlesSendAsync ( )
testApiPushRequest_HandlesSendAsyncOnEachName ( )
testApiPushRequest_ReturnsArrayOfStatuses_WhenMultipleNamesSet ( )
testApiPushRequest_ReturnsEmptyArray_WhenNoneNameSet ( )
testApiPushRequest_ReturnsStatus_WhenSingleNameSet ( )
testApiPush_PushesAsync_WhenCallbacksAreNull ( )
testApiPush_PushesRequest_WhenAtLeastOneOfCallbacksIsNotNull ( )
testApiReceive_ReceivesMessage ( )
testApiRemoveBus_DoesNothing_WhenBusDoesNotExist ( )
testApiRemoveBus_RemovesBus_WhenBusDoesExist ( )
testApiRouter_ReturnsRouter ( )
testApiSendAsync_HandlesSendAsync ( )
testApiSendAsync_HandlesSendAsyncOnEachName ( )
testApiSendAsync_ReturnsArrayOfStatuses_WhenMultipleNamesSet ( )
testApiSendAsync_ReturnsEmptyArray_WhenNoneNameSet ( )
testApiSendAsync_ReturnsStatus_WhenSingleNameSet ( )
testApiSendRequest_HandlesSendAsync ( )
testApiSendRequest_HandlesSendAsyncOnEachName ( )
testApiSendRequest_ReturnsArrayOfStatuses_WhenMultipleNamesSet ( )
testApiSendRequest_ReturnsEmptyArray_WhenNoneNameSet ( )
testApiSendRequest_ReturnsStatus_WhenSingleNameSet ( )
testApiSend_SendsAsync_WhenCallbacksAreNull ( )
testApiSend_SendsRequest_WhenAtLeastOneOfCallbacksIsNotNull ( )
testApiSetBus_SetsBus_WhenBusDoesNotExist ( )
testApiSetBus_ThrowsException_WhenBusDoesExist ( )
testApiStart_CallsStartOnAllBuses ( )
testApiStop_CallsStopOnAllBuses ( )
testCaseAllOnMethods_RegisterHandlers ( $event )
testProtectedApiCreateMessageProtocol_AcceptsMessageProtocol ( )
testProtectedApiCreateMessageProtocol_AcceptsNull ( )
testProtectedApiCreateMessageProtocol_AcceptsStringProtocol ( )
testProtectedApiCreateMessageProtocol_DoesNotOverwriteSetFields ( )
testProtectedApiCreateMessageProtocol_OverwritesNotSetFields ( )
testProtectedApiGenID_GeneratesUniqueID_WithPrefixEqualToSeed ( )
testProtectedApiGetNextSuffix_ResetsOnAfter2Mld ( )
testProtectedApiGetNextSuffix_ReturnsNextSuffix ( )
testProtectedApiGetTime_ReturnsTime ( )

Method Details

createBus() public méthode

public createBus ( string $name = 'name', string[] $methods = [] ) : Channel | PHPUnit_Framework_MockObject_MockObject
$name string
$methods string[]
Résultat Kraken\Channel\Channel | PHPUnit_Framework_MockObject_MockObject

createChannel() public méthode

public createChannel ( Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[] $buses = [], string[] | null $methods = null ) : ChannelComposite | PHPUnit_Framework_MockObject_MockObject
$buses Kraken\Channel\ChannelInterface[] | Kraken\Channel\ChannelCompositeInterface[]
$methods string[] | null
Résultat Kraken\Channel\ChannelComposite | PHPUnit_Framework_MockObject_MockObject

createLoop() public méthode

public createLoop ( string[] | null $methods = null ) : Loop | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Résultat Kraken\Loop\Loop | PHPUnit_Framework_MockObject_MockObject

createRouter() public méthode

public createRouter ( string[] | null $methods = null ) : RouterComposite | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Résultat Kraken\Channel\Router\RouterComposite | PHPUnit_Framework_MockObject_MockObject

eventsProvider() public méthode

public eventsProvider ( ) : string[][]
Résultat string[][]

prepareBus() public méthode

public prepareBus ( string $name = 'name', string[] | null $methods = [] ) : Channel | PHPUnit_Framework_MockObject_MockObject
$name string
$methods string[] | null
Résultat Kraken\Channel\Channel | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_CreatesInstance() public méthode

testApiCreateProtocol_CreatesProtocol_WhenNullPassed() public méthode

testApiCreateProtocol_CreatesProtocol_WhenStringPassed() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiExistsBus_ReturnsFalse_WhenBusDoesNotExist() public méthode

testApiExistsBus_ReturnsTrue_WhenBusDoesExist() public méthode

testApiFilterConnected_ReturnsEmptyArray_WhenNoBusSet() public méthode

testApiGetBus_ReturnsBus_WhenBusDoesExist() public méthode

testApiGetBus_ThrowsException_WhenBusDoesNotExist() public méthode

testApiGetBuses_ReturnsArrayOfBuses_WhenAtLeastOneBusIsSet() public méthode

testApiGetBuses_ReturnsEmptyArray_WhenNoBusIsSet() public méthode

testApiGetConnected_ReturnsEmptyArray_WhenNoBusSet() public méthode

testApiGetConnected_ReturnsUniqueArrayOfConnectedNames() public méthode

testApiHandlePushAsync_ReturnsFalseAndDoesNotEmitEvents_WhenAllBusesReturnFalse() public méthode

testApiHandlePushAsync_ReturnsTrueAndDoesEmitsEvents_WhenAtLeastOneBusReturnTrue() public méthode

testApiHandlePushRequest_ReturnsFalseAndDoesNotEmitEvents_WhenAllBusesReturnFalse() public méthode

testApiHandlePushRequest_ReturnsTrueAndDoesEmitsEvents_WhenAtLeastOneBusReturnTrue() public méthode

testApiHandleSendAsync_HandlesMessageUsingOutput() public méthode

testApiHandleSendRequest_HandlesMessagUsingOutput() public méthode

testApiInput_ReturnsRouterInputBus() public méthode

testApiIsConnected_ReturnsFalse_WhenNoneBusIsSet() public méthode

testApiIsConnected_ReturnsFalse_WhenNoneBusReturnsTrue() public méthode

testApiIsConnected_ReturnsTrue_WhenAtLeastOneBusReturnsTrue() public méthode

testApiIsStarted_ReturnsEmptyArray_WhenNoneBusIsSet() public méthode

testApiIsStarted_ReturnsStatusesArray() public méthode

testApiIsStopped_ReturnsEmptyArray_WhenNoneBusIsSet() public méthode

testApiIsStopped_ReturnsStatusesArray() public méthode

testApiMatchConnected_ReturnsUniqueArrayOfConnectedNames() public méthode

testApiModel_ReturnsNull() public méthode

testApiName_ReturnsName() public méthode

testApiOutput_ReturnsRouterOutputBus() public méthode

testApiPull_PullsMessage() public méthode

testApiPushAsync_HandlesSendAsync() public méthode

testApiPushAsync_HandlesSendAsyncOnEachName() public méthode

testApiPushAsync_ReturnsArrayOfStatuses_WhenMultipleNamesSet() public méthode

testApiPushAsync_ReturnsEmptyArray_WhenNoneNameSet() public méthode

testApiPushAsync_ReturnsStatus_WhenSingleNameSet() public méthode

testApiPushRequest_HandlesSendAsync() public méthode

testApiPushRequest_HandlesSendAsyncOnEachName() public méthode

testApiPushRequest_ReturnsArrayOfStatuses_WhenMultipleNamesSet() public méthode

testApiPushRequest_ReturnsEmptyArray_WhenNoneNameSet() public méthode

testApiPushRequest_ReturnsStatus_WhenSingleNameSet() public méthode

testApiPush_PushesAsync_WhenCallbacksAreNull() public méthode

testApiPush_PushesRequest_WhenAtLeastOneOfCallbacksIsNotNull() public méthode

testApiReceive_ReceivesMessage() public méthode

testApiRemoveBus_DoesNothing_WhenBusDoesNotExist() public méthode

testApiRemoveBus_RemovesBus_WhenBusDoesExist() public méthode

testApiRouter_ReturnsRouter() public méthode

testApiSendAsync_HandlesSendAsync() public méthode

testApiSendAsync_HandlesSendAsyncOnEachName() public méthode

testApiSendAsync_ReturnsArrayOfStatuses_WhenMultipleNamesSet() public méthode

testApiSendAsync_ReturnsEmptyArray_WhenNoneNameSet() public méthode

testApiSendAsync_ReturnsStatus_WhenSingleNameSet() public méthode

testApiSendRequest_HandlesSendAsync() public méthode

testApiSendRequest_HandlesSendAsyncOnEachName() public méthode

testApiSendRequest_ReturnsArrayOfStatuses_WhenMultipleNamesSet() public méthode

testApiSendRequest_ReturnsEmptyArray_WhenNoneNameSet() public méthode

testApiSendRequest_ReturnsStatus_WhenSingleNameSet() public méthode

testApiSend_SendsAsync_WhenCallbacksAreNull() public méthode

testApiSend_SendsRequest_WhenAtLeastOneOfCallbacksIsNotNull() public méthode

testApiSetBus_SetsBus_WhenBusDoesNotExist() public méthode

testApiSetBus_ThrowsException_WhenBusDoesExist() public méthode

testApiStart_CallsStartOnAllBuses() public méthode

testApiStop_CallsStopOnAllBuses() public méthode

testCaseAllOnMethods_RegisterHandlers() public méthode

testProtectedApiCreateMessageProtocol_AcceptsMessageProtocol() public méthode

testProtectedApiCreateMessageProtocol_AcceptsNull() public méthode

testProtectedApiCreateMessageProtocol_AcceptsStringProtocol() public méthode

testProtectedApiCreateMessageProtocol_DoesNotOverwriteSetFields() public méthode

testProtectedApiCreateMessageProtocol_OverwritesNotSetFields() public méthode

testProtectedApiGenID_GeneratesUniqueID_WithPrefixEqualToSeed() public méthode

testProtectedApiGetNextSuffix_ResetsOnAfter2Mld() public méthode

testProtectedApiGetNextSuffix_ReturnsNextSuffix() public méthode

testProtectedApiGetTime_ReturnsTime() public méthode