MediaWiki  REL1_20
TimestampTest Class Reference

Tests timestamp parsing and output. More...

Inheritance diagram for TimestampTest:
Collaboration diagram for TimestampTest:

List of all members.

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.

Detailed Description

Tests timestamp parsing and output.

Definition at line 6 of file TimestampTest.php.


Member Function Documentation

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.

TimestampException

Definition at line 37 of file TimestampTest.php.

Test an invalid timestamp.

TimestampException

Definition at line 29 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.


The documentation for this class was generated from the following file: