TestQuery.php 794 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php declare(strict_types=1);
  2. use PHPUnit\Framework\TestCase;
  3. /**
  4. * Created by PhpStorm.
  5. * User: stanley-king
  6. * Date: 16/7/20
  7. * Time: 下午4:16
  8. */
  9. define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
  10. require_once(BASE_ROOT_PATH . '/global.php');
  11. require_once(BASE_CORE_PATH . '/lrlz.php');
  12. require_once(BASE_ROOT_PATH . '/fooder.php');
  13. class TestQuery extends TestCase
  14. {
  15. public static function setUpBeforeClass(): void
  16. {
  17. Base::run_util();
  18. }
  19. public function testAdd()
  20. {
  21. $mod_qerr = Model('refill_query_err');
  22. $insert = ['mch_order' => '343143214312','mchid' => 1];
  23. $insert['code'] = 202;
  24. $insert['msg'] = "检索充值中的单子,查不到任何订单信息.";
  25. $mod_qerr->add($insert);
  26. }
  27. }