contrib modules security updates
This commit is contained in:
@@ -38,5 +38,16 @@ class FeedsDateTimeTest extends FeedsWebTestCase {
|
||||
$this->assertTrue(is_numeric($date->format('U')));
|
||||
$date = new FeedsDateTime('12/3/2009 20:00:10');
|
||||
$this->assertTrue(is_numeric($date->format('U')));
|
||||
|
||||
// Check that years above 2000 work correctly.
|
||||
$date1 = new FeedsDateTime(2012);
|
||||
$date2 = new FeedsDateTime('January 2012');
|
||||
$this->assertEqual($date1->format('U'), $date2->format('U'));
|
||||
|
||||
// Check that years before 1902 work correctly.
|
||||
$early_date_string = '01/02/1901';
|
||||
$date = new FeedsDateTime($early_date_string);
|
||||
$this->assertEqual($date->format('m/d/Y'), $early_date_string);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user