MediaWiki
REL1_22
|
The function only need a string parameter and might react to IIS7.0 wfUrlencode. More...
Public Member Functions | |
testEncodingUrlWith ($input, $expected) | |
provideURLS | |
testEncodingUrlWithMicrosoftIis7 ($input, $expected) | |
provideURLS | |
Static Public Member Functions | |
static | provideURLS () |
Format is either: array( 'input', 'expected' ); Or: array( 'input', array( 'Apache', 'expected' ), array( 'Microsoft-IIS/7', 'expected' ), ), If you want to add other HTTP server name, you will have to add a new testing method much like the testEncodingUrlWith() method above. | |
Private Member Functions | |
extractExpect ($server, $expectations) | |
Interprets the provider array. | |
verifyEncodingFor ($server, $input, $expectations) | |
Internal helper that actually run the test. |
The function only need a string parameter and might react to IIS7.0 wfUrlencode.
Definition at line 6 of file wfUrlencodeTest.php.
WfUrlencodeTest::extractExpect | ( | $ | server, |
$ | expectations | ||
) | [private] |
Interprets the provider array.
Return expected value depending the HTTP server name.
Definition at line 60 of file wfUrlencodeTest.php.
Referenced by verifyEncodingFor().
static WfUrlencodeTest::provideURLS | ( | ) | [static] |
Format is either: array( 'input', 'expected' ); Or: array( 'input', array( 'Apache', 'expected' ), array( 'Microsoft-IIS/7', 'expected' ), ), If you want to add other HTTP server name, you will have to add a new testing method much like the testEncodingUrlWith() method above.
Definition at line 87 of file wfUrlencodeTest.php.
References array().
WfUrlencodeTest::testEncodingUrlWith | ( | $ | input, |
$ | expected | ||
) |
WfUrlencodeTest::testEncodingUrlWithMicrosoftIis7 | ( | $ | input, |
$ | expected | ||
) |
WfUrlencodeTest::verifyEncodingFor | ( | $ | server, |
$ | input, | ||
$ | expectations | ||
) | [private] |
Internal helper that actually run the test.
Called by the public methods testEncodingUrlWith...()
Definition at line 30 of file wfUrlencodeTest.php.
References extractExpect(), and wfUrlencode().
Referenced by testEncodingUrlWith(), and testEncodingUrlWithMicrosoftIis7().