PHP Class Kraken\_Unit\Loop\Bridge\React\ReactTimerTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
boolVariantProvider ( ) : bool[][]
testApiCancel_CallsActualCancel ( )
testApiGetActualTimer_ReturnsTimerPassedInConstructor ( )
testApiGetCallback_ReturnsProperCallback ( )
testApiGetData_ReturnsProperData ( )
testApiGetInterval_ReturnsProperInterval ( )
testApiGetLoop_ReturnsReactLoop ( )
testApiIsActive_CallsActualIsActive ( $bool )
testApiIsPeriodic_CallsActualIsPeriodic ( $bool )
testApiSetData_PassesProperParameters ( )

Protected Methods

Method Description
createApiMethodMock ( string $method, callable $validator ) : ReactTimer
createTimerMock ( ) : Kraken\Loop\Timer\TimerInterface | PHPUnit_Framework_MockObject_MockObject

Method Details

boolVariantProvider() public method

public boolVariantProvider ( ) : bool[][]
return bool[][]

createApiMethodMock() protected method

protected createApiMethodMock ( string $method, callable $validator ) : ReactTimer
$method string
$validator callable
return Kraken\Loop\Bridge\React\ReactTimer

createTimerMock() protected method

protected createTimerMock ( ) : Kraken\Loop\Timer\TimerInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Loop\Timer\TimerInterface | PHPUnit_Framework_MockObject_MockObject

testApiCancel_CallsActualCancel() public method

testApiGetActualTimer_ReturnsTimerPassedInConstructor() public method

testApiGetCallback_ReturnsProperCallback() public method

testApiGetData_ReturnsProperData() public method

testApiGetInterval_ReturnsProperInterval() public method

testApiGetLoop_ReturnsReactLoop() public method

testApiIsActive_CallsActualIsActive() public method

testApiIsPeriodic_CallsActualIsPeriodic() public method

testApiSetData_PassesProperParameters() public method