MediaWiki  REL1_22
WfUrlencodeTest Class Reference

The function only need a string parameter and might react to IIS7.0 wfUrlencode. More...

Inheritance diagram for WfUrlencodeTest:
Collaboration diagram for WfUrlencodeTest:

List of all members.

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.

Detailed Description

The function only need a string parameter and might react to IIS7.0 wfUrlencode.

Definition at line 6 of file wfUrlencodeTest.php.


Member Function Documentation

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 
)

provideURLS

Definition at line 12 of file wfUrlencodeTest.php.

References verifyEncodingFor().

provideURLS

Definition at line 19 of file wfUrlencodeTest.php.

References verifyEncodingFor().

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


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