Skip to content

Commit 8ac6ac3

Browse files
committed
Add vod test
1 parent 10ade3d commit 8ac6ac3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/VodTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: eagle
5+
* Date: 2018/4/4
6+
* Time: 11:09
7+
*/
8+
9+
class VodTest extends TestCase
10+
{
11+
12+
public function testGetPlayInfoRequest()
13+
{
14+
$request = new Vod\Request\V20170321\GetPlayInfoRequest();
15+
$request->setVideoId("test"); // 错误 ID
16+
$request->setRegionId('cn-shanghai');
17+
18+
try {
19+
$response = $this->acsClient->getAcsResponse($request);
20+
} catch (ServerException $e) {
21+
$this->assertEquals(404, $e->getHttpStatus());
22+
return;
23+
}
24+
}
25+
26+
}

0 commit comments

Comments
 (0)