stanley-king 4 лет назад
Родитель
Сommit
a77c1699e1
3 измененных файлов с 16 добавлено и 7 удалено
  1. 0 5
      test/TestAccountHelper.php
  2. 15 2
      test/TestActivity.php
  3. 1 0
      test/TestArea.php

+ 0 - 5
test/TestAccountHelper.php

@@ -91,9 +91,4 @@ class TestAccountHelper extends TestCase
     {
         account_helper::onAsyncBroadcastOrder('290563492188164623',0.1,30);
     }
-
-    public static function tearDownAfterClass():void
-    {
-
-    }
 }

+ 15 - 2
test/TestActivity.php

@@ -7,17 +7,30 @@
  * Time: 下午5:29
  */
 
+use PHPUnit\Framework\TestCase;
+
+/**
+ * Created by PhpStorm.
+ * User: stanley-king
+ * Date: 16/6/27
+ * Time: 下午10:27
+ */
+
 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_ROOT_PATH . '/fooder.php');
 require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/message/msgutil.php');
 
 
-class TestActivity extends PHPUnit_Framework_TestCase
+class TestActivity extends TestCase
 {
-    public static function setUpBeforeClass()
+    public static function setUpBeforeClass() : void
     {
         Base::run_util();
     }

+ 1 - 0
test/TestArea.php

@@ -9,6 +9,7 @@
 define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
 
 require_once(BASE_ROOT_PATH . '/fooder.php');
+
 require_once(BASE_ROOT_PATH . '/helper/area/area_upgrade.php');
 require_once(BASE_ROOT_PATH . '/helper/area/area_check.php');
 require_once(BASE_ROOT_PATH . '/helper/area/area_validator.php');