TestRefund.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 2016/10/11
  6. * Time: 下午8:56
  7. */
  8. use PHPUnit\Framework\TestCase;
  9. define('APP_ID', 'test');
  10. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  11. require_once(BASE_ROOT_PATH . '/global.php');
  12. require_once(BASE_CORE_PATH . '/lrlz.php');
  13. require_once(BASE_ROOT_PATH . '/fooder.php');
  14. require_once(BASE_ROOT_PATH . '/helper/order_helper.php');
  15. class TestRefund extends TestCase
  16. {
  17. public static function setUpBeforeClass() : void
  18. {
  19. Base::run_util();
  20. }
  21. public function testRefundOrder()
  22. {
  23. $helper = new refund_helper(36490);
  24. $helper->refund('8000000000638201',$err);
  25. }
  26. public function testOrderHelper()
  27. {
  28. $helper = new refund_helper(36490);
  29. $helper->refund('8000000000638201',$err);
  30. }
  31. public function testReturnInfo()
  32. {
  33. $helper = new refund_helper(36490);
  34. $helper->return_info('8000000000651001',10100,$err);
  35. }
  36. public function testByOnline()
  37. {
  38. $x = 1;
  39. }
  40. }