OSS\Tests\LiveChannelXmlTest::testLiveChannelInfo PHP Метод

testLiveChannelInfo() публичный Метод

public testLiveChannelInfo ( )
    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]);
    }