PHP Class Kraken\_Unit\Channel\Router\RouterCompositeTest

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

Public Methods

Method Description
createChannelRouter ( ) : Kraken\Channel\Router\RouterInterface | PHPUnit_Framework_MockObject_MockObject
createChannelRouterComposite ( Kraken\Channel\Router\RouterInterface[] $buses = [] ) : RouterComposite
createProtocol ( ) : Protocol
testApiAddDefault_CallsAddAnchorOnAllBuses ( )
testApiAddRule_CallsAddRuleOnAllBuses ( )
testApiConstructor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiErase_CallsEraseOnAllBuses ( )
testApiExistsBus_ReturnsFalse_WhenBusDoesNotExist ( )
testApiExistsBus_ReturnsTrue_WhenBusDoesExist ( )
testApiGetBus_ReturnsBus_WhenBusDoesExist ( )
testApiGetBus_ThrowsException_WhenBusDoesNotExist ( )
testApiGetBuses_ReturnsAllBuses ( )
testApiHandle_CallsHandleOnAllBuses ( )
testApiRemoveBus_DoesNothing_WhenBusDoesNotExist ( )
testApiRemoveBus_RemovesBus_WhenBusDoesExist ( )
testApiSetBus_SetsBus ( )

Method Details

createChannelRouter() public method

public createChannelRouter ( ) : Kraken\Channel\Router\RouterInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Channel\Router\RouterInterface | PHPUnit_Framework_MockObject_MockObject

createChannelRouterComposite() public method

public createChannelRouterComposite ( Kraken\Channel\Router\RouterInterface[] $buses = [] ) : RouterComposite
$buses Kraken\Channel\Router\RouterInterface[]
return Kraken\Channel\Router\RouterComposite

createProtocol() public method

public createProtocol ( ) : Protocol
return Kraken\Channel\Protocol\Protocol

testApiAddDefault_CallsAddAnchorOnAllBuses() public method

testApiAddRule_CallsAddRuleOnAllBuses() public method

testApiConstructor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiErase_CallsEraseOnAllBuses() public method

testApiExistsBus_ReturnsFalse_WhenBusDoesNotExist() public method

testApiExistsBus_ReturnsTrue_WhenBusDoesExist() public method

testApiGetBus_ReturnsBus_WhenBusDoesExist() public method

testApiGetBus_ThrowsException_WhenBusDoesNotExist() public method

testApiGetBuses_ReturnsAllBuses() public method

testApiHandle_CallsHandleOnAllBuses() public method

testApiRemoveBus_DoesNothing_WhenBusDoesNotExist() public method

testApiRemoveBus_RemovesBus_WhenBusDoesExist() public method

testApiSetBus_SetsBus() public method