FlowApiTest.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace Yunpian\Tests\Sdk\Api;
use PHPUnit\Framework\TestCase;
use Yunpian\Sdk\Constant\YunpianConstant;
/**
*
* @author dzh
* @since 1.0
*/
class FlowApiTest extends TestCase {
use YunpianApiInit;
function _test_get_package() {
$clnt = $this->clnt;
var_dump($clnt->flow()->get_package());
// v1
// var_dump($clnt->flow()->version(YunpianConstant::VERSION_V1)->get_package());
}
function _test_recharge() {
$clnt = $this->clnt;
$param = [YunpianConstant::MOBILE => '18616020000',YunpianConstant::SN => '1008601'];
var_dump($clnt->flow()->recharge($param));
// v1
// var_dump($clnt->flow()->version(YunpianConstant::VERSION_V1)->recharge($param));
}
function _test_pull_status() {
$clnt = $this->clnt;
$param = [YunpianConstant::MOBILE => '18616020000'];
// YunpianConstant::SN=>'1008601'
var_dump($clnt->flow()->pull_status($param));
// v1
// var_dump($clnt->flow()->version(YunpianConstant::VERSION_V1)->pull_status($param));
}
}