PHP Class Phue\Test\Command\SetLightStateTest

Inheritance: extends PHPUnit_Framework_TestCase
显示文件 Open project: sqmk/phue

Public Methods

Method Description
providerAlert ( ) : array Provider: Alert
providerBrightness ( ) : array Provider: Valid brightness
providerColorTemp ( ) : array Provider: XY
providerEffect ( ) : array Provider: Effect
providerHue ( ) : array Provider: Hue
providerInvalidBrightness ( ) : array Provider: Invalid brightness
providerInvalidColorTemp ( ) : array Provider: Invalid Color temp
providerInvalidRGB ( ) : array Provider: Invalid RGB
providerInvalidXY ( ) : array Provider: Invalid XY
providerOnState ( ) : array Provider: On state
providerRGB ( ) : array Provider: RGB
providerSaturation ( ) : array Provider: Saturation
providerTransitionTime ( ) : array Provider: Transition time
providerXY ( ) : array Provider: XY
setUp ( ) Set up
testAlertSend ( $mode ) Test: Set alert mode
testBrightnessSend ( $brightness ) Test: Set brightness
testColorTempSend ( $temp ) Test: Set Color temp
testEffectSend ( $mode ) Test: Set effect mode
testGetActionableParams ( ) Test: Get actionable params
testGetAlertModes ( ) Test: Get alert modes
testGetEffectModes ( ) Test: Get effect modes
testHueSend ( $value ) Test: Set hue
testInvalidAlertMode ( ) Test: Invalid alert mode
testInvalidBrightness ( $brightness ) Test: Invalid brightness
testInvalidColorTempValue ( $temp ) Test: Invalid color temp value
testInvalidEffectMode ( ) Test: Invalid effect mode
testInvalidHueValue ( ) Test: Invalid hue value
testInvalidRGBValue ( $red, $green, $blue ) Test: invalid RGB value
testInvalidSaturationValue ( ) Test: Invalid saturation value
testInvalidTransitionTime ( ) Test: Invalid transition time
testInvalidXYValue ( $x, $y ) Test: Invalid xy value
testOnSend ( $state ) Test: Set light on
testRGBSend ( $red, $green, $blue ) Test: set XY and brightness via RGB
testSaturationSend ( $value ) Test: Set alert mode
testSend ( ) Test: Send command
testTransitionTimeSend ( $time ) Test: Set transition time
testXYSend ( $x, $y ) Test: Set XY

Protected Methods

Method Description
stubTransportSendRequestWithPayload ( stdClass $payload ) Stub transport's sendRequest with an expected payload

Method Details

providerAlert() public method

Provider: Alert
public providerAlert ( ) : array
return array

providerBrightness() public method

Provider: Valid brightness
public providerBrightness ( ) : array
return array

providerColorTemp() public method

Provider: XY
public providerColorTemp ( ) : array
return array

providerEffect() public method

Provider: Effect
public providerEffect ( ) : array
return array

providerHue() public method

Provider: Hue
public providerHue ( ) : array
return array

providerInvalidBrightness() public method

Provider: Invalid brightness
public providerInvalidBrightness ( ) : array
return array

providerInvalidColorTemp() public method

Provider: Invalid Color temp
public providerInvalidColorTemp ( ) : array
return array

providerInvalidRGB() public method

Provider: Invalid RGB
public providerInvalidRGB ( ) : array
return array

providerInvalidXY() public method

Provider: Invalid XY
public providerInvalidXY ( ) : array
return array

providerOnState() public method

Provider: On state
public providerOnState ( ) : array
return array

providerRGB() public method

Provider: RGB
public providerRGB ( ) : array
return array

providerSaturation() public method

Provider: Saturation
public providerSaturation ( ) : array
return array

providerTransitionTime() public method

Provider: Transition time
public providerTransitionTime ( ) : array
return array

providerXY() public method

Provider: XY
public providerXY ( ) : array
return array

setUp() public method

Set up
public setUp ( )

stubTransportSendRequestWithPayload() protected method

Stub transport's sendRequest with an expected payload
protected stubTransportSendRequestWithPayload ( stdClass $payload )
$payload stdClass Payload

testAlertSend() public method

Test: Set alert mode
public testAlertSend ( $mode )

testBrightnessSend() public method

Test: Set brightness
public testBrightnessSend ( $brightness )

testColorTempSend() public method

Test: Set Color temp
public testColorTempSend ( $temp )

testEffectSend() public method

Test: Set effect mode
public testEffectSend ( $mode )

testGetActionableParams() public method

Test: Get actionable params

testGetAlertModes() public method

Test: Get alert modes
public testGetAlertModes ( )

testGetEffectModes() public method

Test: Get effect modes
public testGetEffectModes ( )

testHueSend() public method

Test: Set hue
public testHueSend ( $value )

testInvalidAlertMode() public method

Test: Invalid alert mode

testInvalidBrightness() public method

Test: Invalid brightness
public testInvalidBrightness ( $brightness )

testInvalidColorTempValue() public method

Test: Invalid color temp value
public testInvalidColorTempValue ( $temp )

testInvalidEffectMode() public method

Test: Invalid effect mode

testInvalidHueValue() public method

Test: Invalid hue value
public testInvalidHueValue ( )

testInvalidRGBValue() public method

Test: invalid RGB value
public testInvalidRGBValue ( $red, $green, $blue )

testInvalidSaturationValue() public method

Test: Invalid saturation value

testInvalidTransitionTime() public method

Test: Invalid transition time

testInvalidXYValue() public method

Test: Invalid xy value
public testInvalidXYValue ( $x, $y )

testOnSend() public method

Test: Set light on
public testOnSend ( $state )

testRGBSend() public method

Test: set XY and brightness via RGB
public testRGBSend ( $red, $green, $blue )

testSaturationSend() public method

Test: Set alert mode
public testSaturationSend ( $value )

testSend() public method

Test: Send command
public testSend ( )

testTransitionTimeSend() public method

Test: Set transition time
public testTransitionTimeSend ( $time )

testXYSend() public method

Test: Set XY
public testXYSend ( $x, $y )