|
@@ -16,6 +16,7 @@ require_once(BASE_ROOT_PATH . '/fooder.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/stat_helper.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/stat_helper.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
|
+require_once(BASE_ROOT_PATH . '/helper/refill/functional.php');
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
class TestTime extends TestCase
|
|
@@ -46,12 +47,11 @@ class TestTime extends TestCase
|
|
|
|
|
|
public function testS()
|
|
|
{
|
|
|
- $date = date('Y-m-d H:i:S',1517399862);
|
|
|
+ $date = date('Y-m-d H:i:S', 1517399862);
|
|
|
$x = time();
|
|
|
- $date = date('YmdHis',$x);
|
|
|
+ $date = date('YmdHis', $x);
|
|
|
$date = strtotime($date);
|
|
|
|
|
|
-
|
|
|
$tm = strtotime('2017-08-01 3:43:00');
|
|
|
$tm1 = strtotime('2017-8-01 3:43:00');
|
|
|
$tm2 = strtotime('2017-08-1 3:43:00');
|
|
@@ -59,7 +59,7 @@ class TestTime extends TestCase
|
|
|
|
|
|
$tm3 = strtotime('2017-8-1 03:43:00');
|
|
|
$tm3 = strtotime('2017-8-1 3:43:00');
|
|
|
- $tm3 = strtotime('2017-8-1 3:43');
|
|
|
+ $tm3 = strtotime('2017-8-1 3:43');
|
|
|
}
|
|
|
|
|
|
public function testDay()
|
|
@@ -107,7 +107,6 @@ class TestTime extends TestCase
|
|
|
public function testRange()
|
|
|
{
|
|
|
$ltm = localtime(strtotime('2020-09-28'),true);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private function year_day()
|
|
@@ -216,4 +215,9 @@ class TestTime extends TestCase
|
|
|
Log::record("{$val}",Log::DEBUG);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public function testIsDay()
|
|
|
+ {
|
|
|
+ $ret = refill\functional::isDay();
|
|
|
+ }
|
|
|
}
|