ClientTest.php 734 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Alipay\EasySDK\Test\payment\huabei;
  3. use Alipay\EasySDK\Kernel\Factory;
  4. use Alipay\EasySDK\Payment\Huabei\Models\HuabeiConfig;
  5. use Alipay\EasySDK\Test\TestAccount;
  6. use PHPUnit\Framework\TestCase;
  7. class ClientTest extends TestCase
  8. {
  9. public function testCreate()
  10. {
  11. $account = new TestAccount();
  12. Factory::setOptions($account->getTestAccount());
  13. $config = new HuabeiConfig();
  14. $config->hbFqNum = '3';
  15. $config->hbFqSellerPercent = '0';
  16. $result = Factory::payment()->huabei()->create("Iphone6 16G", microtime(), "0.10", "2088002656718920", $config);
  17. $this->assertEquals('10000', $result->code);
  18. $this->assertEquals('Success', $result->msg);
  19. }
  20. }