PHP Class Kraken\_Unit\Loop\Timer\TimerBoxTest

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

Méthodes publiques

Méthode Description
createTimer ( float $interval = 1, callable $handler = null, boolean $periodic = false, mixed | null $data = null ) : Kraken\Loop\Timer\TimerInterface
createTimerBox ( ) : TimerBox
testApiAdd_AddsTimer ( )
testApiConstructor_DoesNotThrowException ( )
testApiContains_ReturnsFalse_WhenTimerDoesNotExist ( )
testApiContains_ReturnsTrue_WhenTimerDoesExist ( )
testApiDestructor_DoesNotThrowException ( )
testApiGetFirst_ReturnsNull_WhenBoxIsEmpty ( )
testApiGetTime_ReturnsTime ( )
testApiIsEmpty_ReturnsFalse_WhenBoxIsFilled ( )
testApiIsEmpty_ReturnsTrue_WhenBoxIsEmpty ( )
testApiRemove_DoesNothing_WhenTimerDoesNotExist ( )
testApiRemove_RemovesTimer_WhenTimerDoesExist ( )
testApiUpdateTime_UpdatesTime ( )

Method Details

createTimer() public méthode

public createTimer ( float $interval = 1, callable $handler = null, boolean $periodic = false, mixed | null $data = null ) : Kraken\Loop\Timer\TimerInterface
$interval float
$handler callable
$periodic boolean
$data mixed | null
Résultat Kraken\Loop\Timer\TimerInterface

createTimerBox() public méthode

public createTimerBox ( ) : TimerBox
Résultat Kraken\Loop\Timer\TimerBox

testApiAdd_AddsTimer() public méthode

testApiConstructor_DoesNotThrowException() public méthode

testApiContains_ReturnsFalse_WhenTimerDoesNotExist() public méthode

testApiContains_ReturnsTrue_WhenTimerDoesExist() public méthode

testApiDestructor_DoesNotThrowException() public méthode

testApiGetFirst_ReturnsNull_WhenBoxIsEmpty() public méthode

testApiGetTime_ReturnsTime() public méthode

testApiIsEmpty_ReturnsFalse_WhenBoxIsFilled() public méthode

testApiIsEmpty_ReturnsTrue_WhenBoxIsEmpty() public méthode

testApiRemove_DoesNothing_WhenTimerDoesNotExist() public méthode

testApiRemove_RemovesTimer_WhenTimerDoesExist() public méthode

testApiUpdateTime_UpdatesTime() public méthode