MediaWiki
REL1_24
|
GlobalFunctions wfTimestamp More...
Public Member Functions | |
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, $outputType, $output, $message) | |
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. | |
Static Public Member Functions | |
static | provideHttpDates () |
static | provideNormalTimestamps () |
static | provideOldTimestamps () |
GlobalFunctions wfTimestamp
Definition at line 7 of file wfTimestampTest.php.
static WfTimestampTest::provideHttpDates | ( | ) | [static] |
Definition at line 161 of file wfTimestampTest.php.
References array().
static WfTimestampTest::provideNormalTimestamps | ( | ) | [static] |
Definition at line 15 of file wfTimestampTest.php.
static WfTimestampTest::provideOldTimestamps | ( | ) | [static] |
Definition at line 103 of file wfTimestampTest.php.
References array().
WfTimestampTest::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
Definition at line 157 of file wfTimestampTest.php.
References $output, and wfTimestamp().
WfTimestampTest::testNormalTimestamps | ( | $ | input, |
$ | format, | ||
$ | output, | ||
$ | desc | ||
) |
provideNormalTimestamps
Definition at line 11 of file wfTimestampTest.php.
References $output, and wfTimestamp().
WfTimestampTest::testOldTimestamps | ( | $ | input, |
$ | outputType, | ||
$ | output, | ||
$ | message | ||
) |
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 92 of file wfTimestampTest.php.
References $output, $timestamp, and wfTimestamp().
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 179 of file wfTimestampTest.php.
References wfTimestamp().