MediaWiki
REL1_20
|
Tests timestamp parsing and output. More...
Public Member Functions | |
provideValidTimestamps () | |
Returns a list of valid timestamps in the format: array( type, timestamp_of_type, timestamp_in_MW ) | |
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. |
Tests timestamp parsing and output.
Definition at line 6 of file TimestampTest.php.
Returns a list of valid timestamps in the format: array( type, timestamp_of_type, timestamp_in_MW )
Definition at line 54 of file TimestampTest.php.
Test human readable timestamp format.
Definition at line 45 of file TimestampTest.php.
Test requesting an invalid output format.
Definition at line 37 of file TimestampTest.php.
TimestampTest::testValidOutput | ( | $ | format, |
$ | expected, | ||
$ | original | ||
) |
Test outputting valid timestamps to different formats.
provideValidTimestamps
Definition at line 20 of file TimestampTest.php.
TimestampTest::testValidParse | ( | $ | format, |
$ | original, | ||
$ | expected | ||
) |
Test parsing of valid timestamps and outputing to MW format.
provideValidTimestamps
Definition at line 11 of file TimestampTest.php.