mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Use gmstrftime() instead of strftime() for testing
I can't replicate any bugs that may affect test_strftime(), so this might not fix anything.
This commit is contained in:
parent
3435a68fff
commit
dec15c1ca5
@ -240,7 +240,7 @@ final class Settings {
|
|||||||
ob_start();
|
ob_start();
|
||||||
var_dump($test);
|
var_dump($test);
|
||||||
$testdump = ob_get_clean();
|
$testdump = ob_get_clean();
|
||||||
echo("Error: date_format test failed. strftime(\"" . $this->date_format . "\",0) returned " . $testdump);
|
echo("Error: date_format test failed. gmstrftime(\"" . $this->date_format . "\",0) returned " . $testdump);
|
||||||
$fail = true;
|
$fail = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +249,7 @@ final class Settings {
|
|||||||
ob_start();
|
ob_start();
|
||||||
var_dump($test);
|
var_dump($test);
|
||||||
$testdump = ob_get_clean();
|
$testdump = ob_get_clean();
|
||||||
echo("Assertion failed: strftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00\"<br>");
|
echo("Assertion failed: gmstrftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00\"<br>");
|
||||||
echo("Actual result: " . $testdump);
|
echo("Actual result: " . $testdump);
|
||||||
$fail = true;
|
$fail = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user