Inheritance: implements OSS\Model\XmlConfig
 protected function parseDataFromResponse()
 {
     $content = $this->rawResponse->body;
     $channel = new LiveChannelInfo();
     $channel->parseFromXml($content);
     return $channel;
 }
 public function testLiveChannelInfo()
 {
     $info = new LiveChannelInfo(array('name' => 'live-1'));
     $info->parseFromXml($this->info);
     $this->assertEquals('live-1', $info->getName());
     $this->assertEquals('xxx', $info->getDescription());
     $this->assertEquals('enabled', $info->getStatus());
     $this->assertEquals('2015-11-24T14:25:31.000Z', $info->getLastModified());
     $pubs = $info->getPublishUrls();
     $this->assertEquals(1, count($pubs));
     $this->assertEquals('rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/213443245345', $pubs[0]);
     $plays = $info->getPlayUrls();
     $this->assertEquals(1, count($plays));
     $this->assertEquals('http://bucket.oss-cn-hangzhou.aliyuncs.com/213443245345/播放列表.m3u8', $plays[0]);
 }