public function FeedsDateTimeTest::test in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds_date_time.test \FeedsDateTimeTest::test()
Dispatch tests, only use one entry point method testX to save time.
File
- tests/
feeds_date_time.test, line 35 - Tests for FeedsDateTime class.
Class
- FeedsDateTimeTest
- Test FeedsDateTime class.
Code
public function test() {
$date = new FeedsDateTime('2010-20-12');
$this
->assertTrue(is_numeric($date
->format('U')));
$date = new FeedsDateTime('created');
$this
->assertTrue(is_numeric($date
->format('U')));
$date = new FeedsDateTime('12/3/2009 20:00:10');
$this
->assertTrue(is_numeric($date
->format('U')));
}