configAttribute() public method

Config attribute
public configAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
return self This object
Example #1
0
 /**
  * Test: Send
  *
  * @covers \Phue\Command\UpdateSensorConfig::send
  */
 public function testSend()
 {
     // Mock client
     $mockClient = Mockery::mock('\\Phue\\Client', array('getUsername' => 'abcdefabcdef01234567890123456789'))->makePartial();
     // Mock client commands
     $mockClient->shouldReceive('getTransport->sendRequest');
     $sensor = new UpdateSensorConfig('5');
     $command = $sensor->configAttribute('key', 'value')->send($mockClient);
 }