setDeviceType() public method

Set device type
public setDeviceType ( string $deviceType ) : self
$deviceType string Device type
return self This object
Esempio n. 1
0
 /**
  * Test: Setting invalid device type
  *
  * @covers \Phue\Command\CreateUser::setDeviceType
  *
  * @expectedException \InvalidArgumentException
  */
 public function testExceptionOnInvalidDeviceType()
 {
     $command = new CreateUser();
     $command->setDeviceType(str_repeat('X', 41));
 }