PHP Class Kraken\_Unit\Loop\LoopTest

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

Méthodes publiques

Méthode 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 méthode

public createLoop ( object | Kraken\Loop\LoopModelInterface $internal ) : Kraken\Loop\LoopExtendedInterface
$internal object | Kraken\Loop\LoopModelInterface
Résultat Kraken\Loop\LoopExtendedInterface

createStreamMock() public méthode

public createStreamMock ( ) : resource
Résultat resource

createTimerMock() public méthode

public createTimerMock ( ) : Timer
Résultat Kraken\Loop\Timer\Timer

expect() public méthode

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

prevent() public méthode

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

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testApiAddPeriodicTimer_CallsMethodOnModel() public méthode

testApiAddReadStream_CallsMethodOnModel() public méthode

testApiAddTimer_CallsMethodOnModel() public méthode

testApiAddWriteStream_CallsMethodOnModel() public méthode

testApiCancelTimer_CallsMethodOnModel() public méthode

testApiConstructor_DoesNotThrowException() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiErase_CallsMethodOnModel() public méthode

testApiErase_CallsMethodOnModel_WithDefaultParams() public méthode

testApiErase_ReturnsCaller() public méthode

testApiExport_CallsMethodOnModel() public méthode

testApiExport_CallsMethodOnModel_WithDefaultParams() public méthode

testApiExport_ReturnsCaller() public méthode

testApiGetFlowController_CallsMethodOnModel() public méthode

testApiGetModel_ReturnsModel() public méthode

testApiImport_CallsMethodOnModel() public méthode

testApiImport_CallsMethodOnModel_WithDefaultParams() public méthode

testApiImport_ReturnsCaller() public méthode

testApiIsRunning_CallsMethodOnModel() public méthode

testApiIsTimerActive_CallsMethodOnModel() public méthode

testApiOnAfterTick_CallsMethodOnModel() public méthode

testApiOnBeforeTick_CallsMethodOnModel() public méthode

testApiOnStart_CallsMethodOnModel() public méthode

testApiOnStop_CallsMethodOnModel() public méthode

testApiOnTick_CallsMethodOnModel() public méthode

testApiRemoveReadStream_CallsMethodOnModel() public méthode

testApiRemoveStream_CallsMethodOnModel() public méthode

testApiRemoveWriteStream_CallsMethodOnModel() public méthode

testApiSetFlowController_CallsMethodOnModel() public méthode

testApiStart_CallsMethodOnModel() public méthode

testApiStop_CallsMethodOnModel() public méthode

testApiSwap_CallsMethodOnModel() public méthode

testApiSwap_CallsMethodOnModel_WithDefaultParams() public méthode

testApiSwap_ReturnsCaller() public méthode

testApiTick_CallsMethodOnModel() public méthode