Projet

Général

Profil

Révision 41cc1b08

Ajouté par Assos Assos il y a presque 9 ans

Update feeds 7.x-2.0-alpha9 -> 7.x-2.0-beta1

Install lib simplepie 1.3.1

Voir les différences:

drupal7/sites/all/modules/feeds/tests/feeds_date_time.test
38 38
    $this->assertTrue(is_numeric($date->format('U')));
39 39
    $date = new FeedsDateTime('12/3/2009 20:00:10');
40 40
    $this->assertTrue(is_numeric($date->format('U')));
41

  
42
    // Check that years above 2000 work correctly.
43
    $date1 = new FeedsDateTime(2012);
44
    $date2 = new FeedsDateTime('January 2012');
45
    $this->assertEqual($date1->format('U'), $date2->format('U'));
46

  
47
    // Check that years before 1902 work correctly.
48
    $early_date_string = '01/02/1901';
49
    $date = new FeedsDateTime($early_date_string);
50
    $this->assertEqual($date->format('m/d/Y'), $early_date_string);
41 51
  }
52

  
42 53
}

Formats disponibles : Unified diff