MediaWiki  REL1_22
HttpTest Class Reference

Broken More...

Inheritance diagram for HttpTest:
Collaboration diagram for HttpTest:

List of all members.

Public Member Functions

 testIsValidUri ($expect, $URI, $message= '')
 Test Http::isValidURI()
 testRelativeRedirections ()
 Warning:
 testValidateCookieDomain ($expected, $domain, $origin=null)
 cookieDomains Cookie::validateCookieDomain

Static Public Member Functions

static cookieDomains ()
static provideURI ()
 Feeds URI to test a long regular expression in Http::isValidURI.

Detailed Description

Broken

Definition at line 5 of file HttpTest.php.


Member Function Documentation

static HttpTest::cookieDomains ( ) [static]

Definition at line 21 of file HttpTest.php.

References array().

static HttpTest::provideURI ( ) [static]

Feeds URI to test a long regular expression in Http::isValidURI.

Definition at line 67 of file HttpTest.php.

References anything, array(), fail, http, https, is, of, only, part, port(), user, and w().

HttpTest::testIsValidUri ( expect,
URI,
message = '' 
)

Test Http::isValidURI()

Bug:
27854 : Http::isValidURI is too lax provideURI Http::isValidURI

Definition at line 56 of file HttpTest.php.

References Http\isValidURI().

Warning:

These tests are for code that makes use of an artifact of how CURL handles header reporting on redirect pages, and will need to be rewritten when bug 29232 is taken care of (high-level handling of HTTP redirects).

Definition at line 137 of file HttpTest.php.

References array(), and MWHttpRequestTester\factory().

HttpTest::testValidateCookieDomain ( expected,
domain,
origin = null 
)

cookieDomains Cookie::validateCookieDomain

Definition at line 10 of file HttpTest.php.

References $ok, and Cookie\validateCookieDomain().


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