TestRefund.php 861 B

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