PHP Class Kraken\_Unit\Loop\LoopTest

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

Public Methods

Method Description
createLoop ( object | Kraken\Loop\LoopModelInterface $internal ) : Kraken\Loop\LoopExtendedInterface
createStreamMock ( ) : resource
createTimerMock ( ) : Timer
expect ( string $method, mixed[] | null $args = null, integer $times = 1 ) : Prophecy\Prophecy\MethodProphecy
prevent ( string $method, mixed[] | null $args = [] ) : Prophecy\Prophecy\MethodProphecy
setUp ( )
tearDown ( )
testApiAddPeriodicTimer_CallsMethodOnModel ( )
testApiAddReadStream_CallsMethodOnModel ( )
testApiAddTimer_CallsMethodOnModel ( )
testApiAddWriteStream_CallsMethodOnModel ( )
testApiCancelTimer_CallsMethodOnModel ( )
testApiConstructor_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )
testApiErase_CallsMethodOnModel ( )
testApiErase_CallsMethodOnModel_WithDefaultParams ( )
testApiErase_ReturnsCaller ( )
testApiExport_CallsMethodOnModel ( )
testApiExport_CallsMethodOnModel_WithDefaultParams ( )
testApiExport_ReturnsCaller ( )
testApiGetFlowController_CallsMethodOnModel ( )
testApiGetModel_ReturnsModel ( )
testApiImport_CallsMethodOnModel ( )
testApiImport_CallsMethodOnModel_WithDefaultParams ( )
testApiImport_ReturnsCaller ( )
testApiIsRunning_CallsMethodOnModel ( )
testApiIsTimerActive_CallsMethodOnModel ( )
testApiOnAfterTick_CallsMethodOnModel ( )
testApiOnBeforeTick_CallsMethodOnModel ( )
testApiOnStart_CallsMethodOnModel ( )
testApiOnStop_CallsMethodOnModel ( )
testApiOnTick_CallsMethodOnModel ( )
testApiRemoveReadStream_CallsMethodOnModel ( )
testApiRemoveStream_CallsMethodOnModel ( )
testApiRemoveWriteStream_CallsMethodOnModel ( )
testApiSetFlowController_CallsMethodOnModel ( )
testApiStart_CallsMethodOnModel ( )
testApiStop_CallsMethodOnModel ( )
testApiSwap_CallsMethodOnModel ( )
testApiSwap_CallsMethodOnModel_WithDefaultParams ( )
testApiSwap_ReturnsCaller ( )
testApiTick_CallsMethodOnModel ( )

Method Details

createLoop() public method

public createLoop ( object | Kraken\Loop\LoopModelInterface $internal ) : Kraken\Loop\LoopExtendedInterface
$internal object | Kraken\Loop\LoopModelInterface
return Kraken\Loop\LoopExtendedInterface

createStreamMock() public method

public createStreamMock ( ) : resource
return resource

createTimerMock() public method

public createTimerMock ( ) : Timer
return Kraken\Loop\Timer\Timer

expect() public method

public expect ( string $method, mixed[] | null $args = null, integer $times = 1 ) : Prophecy\Prophecy\MethodProphecy
$method string
$args mixed[] | null
$times integer
return Prophecy\Prophecy\MethodProphecy

prevent() public method

public prevent ( string $method, mixed[] | null $args = [] ) : Prophecy\Prophecy\MethodProphecy
$method string
$args mixed[] | null
return Prophecy\Prophecy\MethodProphecy

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testApiAddPeriodicTimer_CallsMethodOnModel() public method

testApiAddReadStream_CallsMethodOnModel() public method

testApiAddTimer_CallsMethodOnModel() public method

testApiAddWriteStream_CallsMethodOnModel() public method

testApiCancelTimer_CallsMethodOnModel() public method

testApiConstructor_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

testApiErase_CallsMethodOnModel() public method

testApiErase_CallsMethodOnModel_WithDefaultParams() public method

testApiErase_ReturnsCaller() public method

testApiExport_CallsMethodOnModel() public method

testApiExport_CallsMethodOnModel_WithDefaultParams() public method

testApiExport_ReturnsCaller() public method

testApiGetFlowController_CallsMethodOnModel() public method

testApiGetModel_ReturnsModel() public method

testApiImport_CallsMethodOnModel() public method

testApiImport_CallsMethodOnModel_WithDefaultParams() public method

testApiImport_ReturnsCaller() public method

testApiIsRunning_CallsMethodOnModel() public method

testApiIsTimerActive_CallsMethodOnModel() public method

testApiOnAfterTick_CallsMethodOnModel() public method

testApiOnBeforeTick_CallsMethodOnModel() public method

testApiOnStart_CallsMethodOnModel() public method

testApiOnStop_CallsMethodOnModel() public method

testApiOnTick_CallsMethodOnModel() public method

testApiRemoveReadStream_CallsMethodOnModel() public method

testApiRemoveStream_CallsMethodOnModel() public method

testApiRemoveWriteStream_CallsMethodOnModel() public method

testApiSetFlowController_CallsMethodOnModel() public method

testApiStart_CallsMethodOnModel() public method

testApiStop_CallsMethodOnModel() public method

testApiSwap_CallsMethodOnModel() public method

testApiSwap_CallsMethodOnModel_WithDefaultParams() public method

testApiSwap_ReturnsCaller() public method

testApiTick_CallsMethodOnModel() public method