public function setUp()
{
// Mock client
$this->mockClient = $this->getMock('\\Phue\\Client', array('getTransport'), array('127.0.0.1'));
// Mock transport
$this->mockTransport = $this->getMock('\\Phue\\Transport\\TransportInterface', array('sendRequest'));
// Mock light
$this->mockLight = $this->getMock('\\Phue\\Light', null, array(3, new \stdClass(), $this->mockClient));
// Stub client's getUsername method
$this->mockClient->expects($this->any())->method('getUsername')->will($this->returnValue('abcdefabcdef01234567890123456789'));
// Stub client's getTransport method
$this->mockClient->expects($this->any())->method('getTransport')->will($this->returnValue($this->mockTransport));
}