WalletTest.php 764 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. class WalletTest extends TestCase
  4. {
  5. public function testLogin()
  6. {
  7. $adaPay = new AdaPay\AdaPay();
  8. $adaPay->gateWayType = 'page';
  9. $obj = new AdaPaySdk\Wallet();
  10. $obj_params = array(
  11. # 应用ID
  12. 'app_id'=> 'app_7d87c043-aae3-4357-9b2c-269349a980d6',
  13. # 用户ID
  14. 'member_id'=> 'hf_prod_member_20191013',
  15. # IP
  16. 'ip'=> '192.168.1.152'
  17. );
  18. $obj->login($obj_params);
  19. print("钱包登录".$obj->isError().'=>'.json_encode($obj->result)."\n");
  20. $this->assertEquals('succeeded', $obj->result['status']);
  21. // $this->assertTrue($account->isError());
  22. }
  23. }