TestRefillUtil.php 775 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. define('APP_ID', 'test');
  4. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  5. require_once(BASE_ROOT_PATH . '/global.php');
  6. require_once(BASE_CORE_PATH . '/lrlz.php');
  7. require_once(BASE_ROOT_PATH . '/fooder.php');
  8. require_once(BASE_HELPER_PATH . '/refill/util.php');
  9. class TestRefillUtil extends TestCase
  10. {
  11. public static function setUpBeforeClass(): void
  12. {
  13. Base::run_util();
  14. }
  15. public function testQueueOrder()
  16. {
  17. refill\util::push_queue_order(1092,'abcdefg',30);
  18. $val = refill\util::query_queue_order(1092,'abcdefg');
  19. }
  20. public function testWriteCard()
  21. {
  22. refill\util::write_card('1000113300017553895',mtopcard\SinopecCard,'13911129867');
  23. }
  24. }