MediaWiki  REL1_22
WebRequestTest Class Reference

WebRequest More...

Inheritance diagram for WebRequestTest:
Collaboration diagram for WebRequestTest:

List of all members.

Public Member Functions

 testAcceptLang ($acceptLanguageHeader, $expectedLanguages, $description)
 provideLanguageData WebRequest::getAcceptLang
 testDetectServer ($expected, $input, $description)
 provideDetectServer WebRequest::detectServer
 testGetIP ($expected, $input, $squid, $xffList, $private, $description)
 provideGetIP WebRequest::getIP
 testGetIpLackOfRemoteAddrThrowAnException ()
 MWException WebRequest::getIP

Static Public Member Functions

static provideDetectServer ()
static provideGetIP ()
static provideLanguageData ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

Protected Attributes

 $oldServer

Detailed Description

WebRequest

Definition at line 6 of file WebRequestTest.php.


Member Function Documentation

Definition at line 31 of file WebRequestTest.php.

References array().

static WebRequestTest::provideGetIP ( ) [static]

Definition at line 129 of file WebRequestTest.php.

References array().

Definition at line 285 of file WebRequestTest.php.

References array().

WebRequestTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 9 of file WebRequestTest.php.

WebRequestTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 15 of file WebRequestTest.php.

WebRequestTest::testAcceptLang ( acceptLanguageHeader,
expectedLanguages,
description 
)

provideLanguageData WebRequest::getAcceptLang

Definition at line 305 of file WebRequestTest.php.

References array().

WebRequestTest::testDetectServer ( expected,
input,
description 
)

provideDetectServer WebRequest::detectServer

Definition at line 25 of file WebRequestTest.php.

References $result, and WebRequest\detectServer().

WebRequestTest::testGetIP ( expected,
input,
squid,
xffList,
private,
description 
)

provideGetIP WebRequest::getIP

Definition at line 109 of file WebRequestTest.php.

References $result, array(), and MediaWikiTestCase\setMwGlobals().


Member Data Documentation

WebRequestTest::$oldServer [protected]

Definition at line 7 of file WebRequestTest.php.


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