Modify strftime test

This commit is contained in:
ruan 2017-02-04 14:47:44 +02:00
parent ea25965003
commit d9b7360f25
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -128,12 +128,12 @@ final class Settings {
$fail = true;
}
$test = strftime("%F %H:%M:%S", 0);
if ($test !== "1970-01-01 00:00:00") {
$test = strftime("%Y-%m-%d %H:%M", 0);
if ($test !== "1970-01-01 00:00") {
ob_start();
var_dump($test);
$testdump = ob_get_clean();
echo("Assertion failed: strftime(\"%F %T\",0) != \"1970-01-01 00:00:00\"<br>");
echo("Assertion failed: strftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00:00\"<br>");
echo("Actual result: " . $testdump);
$fail = true;
}