12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use PHPUnit\Framework\TestCase;
- define('APP_ID', 'test');
- 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');
- require_once(BASE_HELPER_PATH . '/refill/util.php');
- class TestRefillUtil extends TestCase
- {
- public static function setUpBeforeClass(): void
- {
- Base::run_util();
- }
- public function testQueueOrder()
- {
- refill\util::push_queue_order(1092,'abcdefg',30);
- $val = refill\util::query_queue_order(1092,'abcdefg');
- }
- public function testWriteCard()
- {
- refill\util::write_card('1000113300017553895',mtopcard\SinopecCard,'13911129867');
- }
- }
|