|
MediaWiki
REL1_21
|
Tests timestamp parsing and output. More...


Public Member Functions | |
| testHumanOutput () | |
| Test human readable timestamp format. | |
| testInvalidOutput () | |
| Test requesting an invalid output format. | |
| testInvalidParse () | |
| Test an invalid timestamp. | |
| testValidOutput ($format, $expected, $original) | |
| Test outputting valid timestamps to different formats. | |
| testValidParse ($format, $original, $expected) | |
| Test parsing of valid timestamps and outputing to MW format. | |
Static Public Member Functions | |
| static | provideValidTimestamps () |
| Returns a list of valid timestamps in the format: array( type, timestamp_of_type, timestamp_in_MW ) | |
Protected Member Functions | |
| setUp () | |
| setUp and tearDown should (where significant) happen in reverse order. | |
Tests timestamp parsing and output.
Definition at line 6 of file TimestampTest.php.
| static TimestampTest::provideValidTimestamps | ( | ) | [static] |
Returns a list of valid timestamps in the format: array( type, timestamp_of_type, timestamp_in_MW )
Definition at line 69 of file TimestampTest.php.
References array().
| TimestampTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 8 of file TimestampTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
Test human readable timestamp format.
Definition at line 56 of file TimestampTest.php.
References $timestamp.
Test requesting an invalid output format.
Definition at line 48 of file TimestampTest.php.
References $timestamp.
| TimestampTest::testValidOutput | ( | $ | format, |
| $ | expected, | ||
| $ | original | ||
| ) |
Test outputting valid timestamps to different formats.
provideValidTimestamps
Definition at line 31 of file TimestampTest.php.
References $timestamp.
| TimestampTest::testValidParse | ( | $ | format, |
| $ | original, | ||
| $ | expected | ||
| ) |
Test parsing of valid timestamps and outputing to MW format.
provideValidTimestamps
Definition at line 22 of file TimestampTest.php.
References $timestamp.