MediaWiki  REL1_22
MWHttpRequestTester Class Reference

Class to let us overwrite MWHttpRequest respHeaders variable. More...

Inheritance diagram for MWHttpRequestTester:
Collaboration diagram for MWHttpRequestTester:

List of all members.

Static Public Member Functions

static factory ($url, $options=null)
 Generate a new request object.

Detailed Description

Class to let us overwrite MWHttpRequest respHeaders variable.

Definition at line 179 of file HttpTest.php.


Member Function Documentation

static MWHttpRequestTester::factory ( url,
options = null 
) [static]

Generate a new request object.

Parameters:
string$urlurl to use
array$options(optional) extra params to pass (see Http::request())
Exceptions:
MWException
Returns:
CurlHttpRequest|PhpHttpRequest
See also:
MWHttpRequest::__construct

Reimplemented from MWHttpRequest.

Definition at line 183 of file HttpTest.php.

References Http\$httpEngine, $options, MWHttpRequest\$url, and wfIniGetBool().

Referenced by HttpTest\testRelativeRedirections().


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