HttpTest Class Reference

List of all members.

Public Member Functions

 setup ()
 testInstantiation ()
 runHTTPFailureChecks ()
 testFailureDefault ()
 testFailurePhp ()
 testFailureCurl ()
 runHTTPRequests ($proxy=null)
 testRequestDefault ()
 testRequestPhp ()
 testRequestCurl ()
 runHTTPGets ($proxy=null)
 testGetDefault ()
 testGetPhp ()
 testGetCurl ()
 runHTTPPosts ($proxy=null)
 testPostDefault ()
 testPostPhp ()
 testPostCurl ()
 runProxyRequests ()
 testProxyDefault ()
 testProxyPhp ()
 testProxyCurl ()
 testIsLocalUrl ()
 testUserAgent ()
 testIsValidUrl ()
 testValidateCookieDomain ()
 testSetCooke ()
 testCookieJarSetCookie ()
 testParseResponseHeader ()
 runCookieRequests ()
 testCookieRequestDefault ()
 testCookieRequestPhp ()
 testCookieRequestCurl ()

Public Attributes

 $test_geturl
 $test_requesturl = array( "http://en.wikipedia.org/wiki/Special:Export/User:MarkAHershberger" )
 $test_posturl = array( "http://www.comp.leeds.ac.uk/cgi-bin/Perl/environment-example" => "review=test" )

Static Public Attributes

static $content
static $headers
static $has_curl
static $has_fopen
static $has_proxy = false
static $proxy = "http://hulk:8080/"


Detailed Description

Definition at line 9 of file HttpTest.php.


Member Function Documentation

HttpTest::runCookieRequests (  ) 

HttpTest::runHTTPFailureChecks (  ) 

Definition at line 102 of file HttpTest.php.

References Http::$httpEngine, and HttpRequest::factory().

Referenced by testFailureCurl(), testFailureDefault(), and testFailurePhp().

HttpTest::runHTTPGets ( proxy = null  ) 

Definition at line 235 of file HttpTest.php.

References Http::$httpEngine, $proxy, and Http::get().

Referenced by runProxyRequests(), testGetCurl(), testGetDefault(), and testGetPhp().

HttpTest::runHTTPPosts ( proxy = null  ) 

Definition at line 274 of file HttpTest.php.

References Http::$httpEngine, $proxy, and Http::post().

Referenced by runProxyRequests(), testPostCurl(), testPostDefault(), and testPostPhp().

HttpTest::runHTTPRequests ( proxy = null  ) 

HttpTest::runProxyRequests (  ) 

Definition at line 314 of file HttpTest.php.

References runHTTPGets(), runHTTPPosts(), and runHTTPRequests().

Referenced by testProxyCurl(), testProxyDefault(), and testProxyPhp().

HttpTest::setup (  ) 

Definition at line 27 of file HttpTest.php.

References $content, $headers, $out, wfIniGetBool(), and wfTempDir().

HttpTest::testCookieJarSetCookie (  ) 

Definition at line 452 of file HttpTest.php.

HttpTest::testCookieRequestCurl (  ) 

Definition at line 559 of file HttpTest.php.

References Http::$httpEngine, and runCookieRequests().

HttpTest::testCookieRequestDefault (  ) 

Definition at line 547 of file HttpTest.php.

References Http::$httpEngine, and runCookieRequests().

HttpTest::testCookieRequestPhp (  ) 

Definition at line 551 of file HttpTest.php.

References Http::$httpEngine, and runCookieRequests().

HttpTest::testFailureCurl (  ) 

Definition at line 140 of file HttpTest.php.

References Http::$httpEngine, and runHTTPFailureChecks().

HttpTest::testFailureDefault (  ) 

Definition at line 126 of file HttpTest.php.

References Http::$httpEngine, and runHTTPFailureChecks().

HttpTest::testFailurePhp (  ) 

Definition at line 131 of file HttpTest.php.

References Http::$httpEngine, and runHTTPFailureChecks().

HttpTest::testGetCurl (  ) 

Definition at line 264 of file HttpTest.php.

References Http::$httpEngine, and runHTTPGets().

HttpTest::testGetDefault (  ) 

Definition at line 250 of file HttpTest.php.

References Http::$httpEngine, and runHTTPGets().

HttpTest::testGetPhp (  ) 

Definition at line 255 of file HttpTest.php.

References Http::$httpEngine, and runHTTPGets().

HttpTest::testInstantiation (  ) 

Definition at line 73 of file HttpTest.php.

References Http::$httpEngine, and HttpRequest::factory().

HttpTest::testIsLocalUrl (  ) 

Definition at line 351 of file HttpTest.php.

HttpTest::testIsValidUrl (  ) 

Definition at line 358 of file HttpTest.php.

HttpTest::testParseResponseHeader (  ) 

Definition at line 502 of file HttpTest.php.

HttpTest::testPostCurl (  ) 

Definition at line 305 of file HttpTest.php.

References Http::$httpEngine, and runHTTPPosts().

HttpTest::testPostDefault (  ) 

Definition at line 291 of file HttpTest.php.

References Http::$httpEngine, and runHTTPPosts().

HttpTest::testPostPhp (  ) 

Definition at line 296 of file HttpTest.php.

References Http::$httpEngine, and runHTTPPosts().

HttpTest::testProxyCurl (  ) 

Definition at line 342 of file HttpTest.php.

References Http::$httpEngine, and runProxyRequests().

HttpTest::testProxyDefault (  ) 

Definition at line 328 of file HttpTest.php.

References Http::$httpEngine, and runProxyRequests().

HttpTest::testProxyPhp (  ) 

Definition at line 333 of file HttpTest.php.

References Http::$httpEngine, and runProxyRequests().

HttpTest::testRequestCurl (  ) 

Definition at line 182 of file HttpTest.php.

References Http::$httpEngine, and runHTTPRequests().

HttpTest::testRequestDefault (  ) 

Definition at line 168 of file HttpTest.php.

References Http::$httpEngine, and runHTTPRequests().

HttpTest::testRequestPhp (  ) 

Definition at line 173 of file HttpTest.php.

References Http::$httpEngine, and runHTTPRequests().

HttpTest::testSetCooke (  ) 

Definition at line 386 of file HttpTest.php.

HttpTest::testUserAgent (  ) 

Definition at line 355 of file HttpTest.php.

HttpTest::testValidateCookieDomain (  ) 

Definition at line 361 of file HttpTest.php.

References Cookie::validateCookieDomain().


Member Data Documentation

HttpTest::$content [static]

Definition at line 10 of file HttpTest.php.

Referenced by setup().

HttpTest::$has_curl [static]

Definition at line 12 of file HttpTest.php.

HttpTest::$has_fopen [static]

Definition at line 13 of file HttpTest.php.

HttpTest::$has_proxy = false [static]

Definition at line 14 of file HttpTest.php.

HttpTest::$headers [static]

Definition at line 11 of file HttpTest.php.

Referenced by setup().

HttpTest::$proxy = "http://hulk:8080/" [static]

Definition at line 15 of file HttpTest.php.

Referenced by runHTTPGets(), runHTTPPosts(), and runHTTPRequests().

HttpTest::$test_geturl

Initial value:

 array(
                "http://www.example.com/",
                "http://pecl.php.net/feeds/pkg_apc.rss",
                "http://toolserver.org/~jan/poll/dev/main.php?page=wiki_output&id=3",
                "http://meta.wikimedia.org/w/index.php?title=Interwiki_map&action=raw",
                "http://www.mediawiki.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:MediaWiki_hooks&format=php",
        )

Definition at line 16 of file HttpTest.php.

HttpTest::$test_posturl = array( "http://www.comp.leeds.ac.uk/cgi-bin/Perl/environment-example" => "review=test" )

Definition at line 25 of file HttpTest.php.

HttpTest::$test_requesturl = array( "http://en.wikipedia.org/wiki/Special:Export/User:MarkAHershberger" )

Definition at line 23 of file HttpTest.php.


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

Generated on Sat Apr 30 22:57:39 2011 for MediaWiki by  doxygen 1.5.9