/** * Test: Invalid effect mode * * @covers \Phue\Command\SetLightState::effect * * @expectedException \InvalidArgumentException */ public function testInvalidEffectMode() { $x = new SetLightState($this->mockLight); $x->effect('invalidmode'); }
/** * Set effect * * @param string $mode * Effect mode * * @return self This object */ public function setEffect($mode = SetLightState::EFFECT_NONE) { $x = new SetLightState($this); $y = $x->effect($mode); $this->client->sendCommand($y); $this->attributes->state->effect = $mode; return $this; }