TestRefillFactor.php 714 B

1234567891011121314151617181920212223242526272829303132
  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/RefillFactory.php');
  9. class TestRefillFactor extends TestCase
  10. {
  11. public static function setUpBeforeClass(): void
  12. {
  13. Base::run_util();
  14. }
  15. public function testProvider()
  16. {
  17. $provider = new refill\ProviderManager();
  18. $provider->load();
  19. }
  20. public function testInstance()
  21. {
  22. refill\RefillFactory::instance()->notify_merchant(1,false);
  23. }
  24. }