public function testGetScenes()
{
// Mock transport
$mockTransport = $this->getMock('\\Phue\\Transport\\TransportInterface', array('sendRequest'));
// Mock results for sendRequest
// $mockResults = (object) [
// '1' => new \stdClass,
// '2' => new \stdClass,
// '3' => new \stdClass,
// ];
$mockResults = (object) array('1' => new \stdClass(), '2' => new \stdClass(), '3' => new \stdClass());
// Stub transports sendRequest method
$mockTransport->expects($this->once())->method('sendRequest')->will($this->returnValue($mockResults));
// Set transport
$this->client->setTransport($mockTransport);
// Get scenes
$scenes = $this->client->getScenes();
// Ensure three scenes
$this->assertEquals(3, count($scenes));
// Ensure return type is an array of scenes
$this->assertContainsOnlyInstancesOf('\\Phue\\Scene', $scenes);
}