PHP Class Kraken\_Unit\Loop\Timer\TimerBoxTest

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

Public Methods

Method 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 method

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
return Kraken\Loop\Timer\TimerInterface

createTimerBox() public method

public createTimerBox ( ) : TimerBox
return Kraken\Loop\Timer\TimerBox

testApiAdd_AddsTimer() public method

testApiConstructor_DoesNotThrowException() public method

testApiContains_ReturnsFalse_WhenTimerDoesNotExist() public method

testApiContains_ReturnsTrue_WhenTimerDoesExist() public method

testApiDestructor_DoesNotThrowException() public method

testApiGetFirst_ReturnsNull_WhenBoxIsEmpty() public method

testApiGetTime_ReturnsTime() public method

testApiIsEmpty_ReturnsFalse_WhenBoxIsFilled() public method

testApiIsEmpty_ReturnsTrue_WhenBoxIsEmpty() public method

testApiRemove_DoesNothing_WhenTimerDoesNotExist() public method

testApiRemove_RemovesTimer_WhenTimerDoesExist() public method

testApiUpdateTime_UpdatesTime() public method