PHP Class Kraken\_Unit\Channel\Router\RouterRuleTest

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

Public Methods

Method Description
createProtocol ( ) : Protocol
createRouterHandler ( callable $matcher, callable $handler, boolean $propagate = false, integer $limit ) : RouterRule | PHPUnit_Framework_MockObject_MockObject
testApiConstructor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiHandle_CallsCancelWhenLimitHitsZero ( )
testApiHandle_CallsHandler ( )
testApiHandle_DecreasesLimit ( )
testApiMatch_CallsMatcher ( )
testApiRouter_ReturnsRouter ( )
testApiSetPointer_SetsPointer ( )

Method Details

createProtocol() public method

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

createRouterHandler() public method

public createRouterHandler ( callable $matcher, callable $handler, boolean $propagate = false, integer $limit ) : RouterRule | PHPUnit_Framework_MockObject_MockObject
$matcher callable
$handler callable
$propagate boolean
$limit integer
return Kraken\Channel\Router\RouterRule | PHPUnit_Framework_MockObject_MockObject

testApiConstructor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiHandle_CallsCancelWhenLimitHitsZero() public method

testApiHandle_CallsHandler() public method

testApiHandle_DecreasesLimit() public method

testApiMatch_CallsMatcher() public method

testApiRouter_ReturnsRouter() public method

testApiSetPointer_SetsPointer() public method