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