stanley-king 2 年之前
父節點
當前提交
e213efd9f2
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      test/TestPHPLan.php

+ 9 - 0
test/TestPHPLan.php

@@ -16,4 +16,13 @@ class TestPHPLan extends TestCase
             $high = array_slice($specs,$length);
         }
     }
+    public function testLastMonth()
+    {
+        $getter = function ($time) {
+            return strtotime(date('Y-m-d',$time)) - 86400 * 30;
+        };
+
+        $x = $getter(time());
+        $y = 10;
+    }
 }