stanley 2 年之前
父节点
当前提交
2eb4130e4e
共有 3 个文件被更改,包括 24 次插入1 次删除
  1. 1 1
      helper/refill/RefillBase.php
  2. 14 0
      test/TestPdDivert.php
  3. 9 0
      test/start.php

+ 1 - 1
helper/refill/RefillBase.php

@@ -115,7 +115,7 @@ class RefillBase
             return (substr($haystack, 0, $length) === $needle);
         };
 
-        $headers = ['SP', 'J98', 'WX', '110110']; //, '11010336J' '0095', 
+        $headers = ['SP', 'J98', 'WX', '110110']; //, '11010336J' '0095',
         $spcheker = function () use ($start_with, $headers, $official_sn)
         {
             $official_sn = strtoupper($official_sn);

+ 14 - 0
test/TestPdDivert.php

@@ -0,0 +1,14 @@
+<?php
+
+
+use PHPUnit\Framework\TestCase;
+
+class TestPdDivert extends TestCase
+{
+    public function testPdDivert()
+    {
+        $x = 1;
+
+    }
+
+}

+ 9 - 0
test/start.php

@@ -0,0 +1,9 @@
+<?php
+
+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');
+
+Base::run_util();