public function testSetTime()
{
// Stub client's sendCommand method
$this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetScheduleAttributes'))->will($this->returnValue($this->schedule));
// Ensure setTime returns self
$this->assertEquals($this->schedule, $this->schedule->setTime('2010-10-20T10:11:12'));
// Ensure new time can be retrieved by getTime
$this->assertEquals('2010-10-20T10:11:12', $this->schedule->getTime());
}