MediaWiki  REL1_21
TimestampTest Class Reference

Tests timestamp parsing and output. More...

Inheritance diagram for TimestampTest:
Collaboration diagram for TimestampTest:

List of all members.

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.

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 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.

TimestampException

Definition at line 48 of file TimestampTest.php.

References $timestamp.

Test an invalid timestamp.

TimestampException

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


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