MDL_41126 phpunit: Timestamp should be less than 2038

http://php.net/manual/en/datetime.gettimestamp.php#114590
In 32-bit system the unix timestamp will overflow if the date goes beyond year 2038
and this method will return false.
This commit is contained in:
Rajesh Taneja
2016-08-09 10:50:07 +08:00
parent 763c5b0eb4
commit 9f2b916dee
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ class mod_data_generator_testcase extends advanced_testcase {
$contents = array();
$contents[] = array('one', 'two', 'three', 'four');
$contents[] = '01-01-2100';
$contents[] = '01-01-2037'; // It should be lower than 2038, to avoid failing on 32-bit windows.
$contents[] = 'one';
$contents[] = array('one', 'two', 'three', 'four');
$contents[] = '12345';