PHP Class Kraken\_Unit\Loop\Timer\TimerCollectionTest

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
createTimerCollection ( Kraken\Loop\Timer\TimerInterface[] $timers = [] ) : TimerCollection
testApiAddTimer_AddsTimer ( )
testApiConstructor_AllowsEmptyTimerList ( )
testApiConstructor_AllowsNonEmptyTimerList ( )
testApiDestructor_DoesNotThrowException ( )
testApiExistsTimer_ReturnsFalse_WhenTimerDoesNotExist ( )
testApiExistsTimer_ReturnsTrue_WhenTimerDoesExist ( )
testApiGetTimer_ReturnsNull_WhenTimerDoesNotExist ( )
testApiGetTimer_ReturnsTimer_WhenTimerDoesExist ( )
testApiGetTimers_ReturnsTimers ( )
testApiRemoveTimer_DoesNothing_WhenTimerDoesNotExist ( )
testApiRemoveTimer_RemovesTimer_WhenTimerDoesExist ( )

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

createTimerCollection() public method

public createTimerCollection ( Kraken\Loop\Timer\TimerInterface[] $timers = [] ) : TimerCollection
$timers Kraken\Loop\Timer\TimerInterface[]
return Kraken\Loop\Timer\TimerCollection

testApiAddTimer_AddsTimer() public method

testApiConstructor_AllowsEmptyTimerList() public method

testApiConstructor_AllowsNonEmptyTimerList() public method

testApiDestructor_DoesNotThrowException() public method

testApiExistsTimer_ReturnsFalse_WhenTimerDoesNotExist() public method

testApiExistsTimer_ReturnsTrue_WhenTimerDoesExist() public method

testApiGetTimer_ReturnsNull_WhenTimerDoesNotExist() public method

testApiGetTimer_ReturnsTimer_WhenTimerDoesExist() public method

testApiGetTimers_ReturnsTimers() public method

testApiRemoveTimer_DoesNothing_WhenTimerDoesNotExist() public method

testApiRemoveTimer_RemovesTimer_WhenTimerDoesExist() public method