PHP 클래스 Kraken\_Unit\Loop\Timer\TimerBoxTest

상속: extends Kraken\Test\TUnit
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
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 ( )

메소드 상세

createTimer() 공개 메소드

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

createTimerBox() 공개 메소드

public createTimerBox ( ) : TimerBox
리턴 Kraken\Loop\Timer\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() 공개 메소드