MediaWiki REL1_30
|
Public Member Functions | |
setUp () | |
tearDown () | |
testBasicAuthentication () | |
testgetFinalUrl () | |
testGetResponseHeaders () | |
testGetStatus () | |
testIsRedirect () | |
testSetCallback () | |
testSetCookie () | |
testSetCookieJar () | |
testSetData () | |
testSetHeader () | |
testSetUserAgent () | |
Protected Member Functions | |
assertHasCookie ( $expectedName, $expectedValue, CookieJar $cookieJar) | |
Asserts that the cookie jar has the given cookie with the given value. | |
assertNotHasCookie ( $name, CookieJar $cookieJar) | |
Asserts that the cookie jar does not have the given cookie. | |
assertResponseFieldValue ( $key, $expectedValue, MWHttpRequest $response) | |
Verifies that the request was successful, returned valid JSON and the given field of that JSON data is as expected. | |
Protected Attributes | |
$oldHttpEngine | |
Static Protected Attributes | |
static | $httpEngine |
Definition at line 5 of file MWHttpRequestTestCase.php.
|
protected |
Asserts that the cookie jar has the given cookie with the given value.
Definition at line 226 of file MWHttpRequestTestCase.php.
Referenced by testSetCookieJar().
|
protected |
Asserts that the cookie jar does not have the given cookie.
Definition at line 240 of file MWHttpRequestTestCase.php.
Referenced by testSetCookieJar().
|
protected |
Verifies that the request was successful, returned valid JSON and the given field of that JSON data is as expected.
string | string[] | $key | Path to the data in the response object |
mixed | $expectedValue | |
MWHttpRequest | $response |
Definition at line 207 of file MWHttpRequestTestCase.php.
References $response.
Referenced by testBasicAuthentication(), testgetFinalUrl(), testSetCookie(), testSetCookieJar(), testSetData(), testSetHeader(), and testSetUserAgent().
MWHttpRequestTestCase::setUp | ( | ) |
Definition at line 9 of file MWHttpRequestTestCase.php.
MWHttpRequestTestCase::tearDown | ( | ) |
Definition at line 27 of file MWHttpRequestTestCase.php.
References $oldHttpEngine.
MWHttpRequestTestCase::testBasicAuthentication | ( | ) |
Definition at line 180 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
MWHttpRequestTestCase::testgetFinalUrl | ( | ) |
Definition at line 46 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
MWHttpRequestTestCase::testGetResponseHeaders | ( | ) |
Definition at line 121 of file MWHttpRequestTestCase.php.
References $request.
MWHttpRequestTestCase::testGetStatus | ( | ) |
Definition at line 138 of file MWHttpRequestTestCase.php.
References $request.
MWHttpRequestTestCase::testIsRedirect | ( | ) |
Definition at line 34 of file MWHttpRequestTestCase.php.
References $request.
MWHttpRequestTestCase::testSetCallback | ( | ) |
Definition at line 161 of file MWHttpRequestTestCase.php.
References $request.
MWHttpRequestTestCase::testSetCookie | ( | ) |
Definition at line 81 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
MWHttpRequestTestCase::testSetCookieJar | ( | ) |
Definition at line 90 of file MWHttpRequestTestCase.php.
References $request, assertHasCookie(), assertNotHasCookie(), and assertResponseFieldValue().
MWHttpRequestTestCase::testSetData | ( | ) |
Definition at line 153 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
MWHttpRequestTestCase::testSetHeader | ( | ) |
Definition at line 130 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
MWHttpRequestTestCase::testSetUserAgent | ( | ) |
Definition at line 145 of file MWHttpRequestTestCase.php.
References $request, and assertResponseFieldValue().
|
staticprotected |
Definition at line 6 of file MWHttpRequestTestCase.php.
|
protected |
Definition at line 7 of file MWHttpRequestTestCase.php.
Referenced by tearDown().