MediaWiki  REL1_19
wfTimestamp Class Reference
Inheritance diagram for wfTimestamp:
Collaboration diagram for wfTimestamp:

List of all members.

Public Member Functions

 provideHttpDates ()
 provideNormalTimestamps ()
 provideOldTimestamps ()
 testHttpDate ($input, $output, $desc)
 The Resource Loader uses wfTimestamp() to convert timestamps from If-Modified-Since header.
 testNormalTimestamps ($input, $format, $output, $desc)
 provideNormalTimestamps
 testOldTimestamps ($input, $format, $output, $desc)
 This test checks wfTimestamp() with values outside.
 testTimestampParameter ()
 There are a number of assumptions in our codebase where wfTimestamp() should give the current date but it is not given a 0 there.

Detailed Description

Definition at line 6 of file wfTimestampTest.php.


Member Function Documentation

Definition at line 103 of file wfTimestampTest.php.

Definition at line 14 of file wfTimestampTest.php.

References $t.

Definition at line 64 of file wfTimestampTest.php.

wfTimestamp::testHttpDate ( input,
output,
desc 
)

The Resource Loader uses wfTimestamp() to convert timestamps from If-Modified-Since header.

Thus it must be able to parse all rfc2616 date formats

See also:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 provideHttpDates

Definition at line 99 of file wfTimestampTest.php.

References $input, $output, and wfTimestamp().

Here is the call graph for this function:

wfTimestamp::testNormalTimestamps ( input,
format,
output,
desc 
)

provideNormalTimestamps

Definition at line 10 of file wfTimestampTest.php.

References $input, $output, and wfTimestamp().

Here is the call graph for this function:

wfTimestamp::testOldTimestamps ( input,
format,
output,
desc 
)

This test checks wfTimestamp() with values outside.

It needs PHP 64 bits or PHP > 5.1. See r74778 and bug 25451 provideOldTimestamps

Definition at line 60 of file wfTimestampTest.php.

References $input, $output, and wfTimestamp().

Here is the call graph for this function:

There are a number of assumptions in our codebase where wfTimestamp() should give the current date but it is not given a 0 there.

See r71751 CR

Definition at line 117 of file wfTimestampTest.php.

References wfTimestamp().

Here is the call graph for this function:


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