|
@@ -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;
|
|
|
+ }
|
|
|
}
|