MediaWiki
1.32.5
|
Public Member Functions | |
setUp () | |
tearDown () | |
testBasicAuthentication () | |
testFactoryDefaults () | |
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. More... | |
assertNotHasCookie ( $name, CookieJar $cookieJar) | |
Asserts that the cookie jar does not have the given cookie. More... | |
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. More... | |
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 230 of file MWHttpRequestTestCase.php.
Referenced by testSetCookieJar().
|
protected |
Asserts that the cookie jar does not have the given cookie.
Definition at line 244 of file MWHttpRequestTestCase.php.
References $name.
|
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 211 of file MWHttpRequestTestCase.php.
References $response, array(), as, and true.
Referenced by testBasicAuthentication(), testgetFinalUrl(), testSetCookie(), testSetCookieJar(), testSetData(), testSetHeader(), and testSetUserAgent().
MWHttpRequestTestCase::setUp | ( | ) |
Definition at line 9 of file MWHttpRequestTestCase.php.
References $e, Http\$httpEngine, $request, class, and MWHttpRequest\factory().
MWHttpRequestTestCase::tearDown | ( | ) |
Definition at line 27 of file MWHttpRequestTestCase.php.
References Http\$httpEngine, and $oldHttpEngine.
MWHttpRequestTestCase::testBasicAuthentication | ( | ) |
Definition at line 179 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testFactoryDefaults | ( | ) |
Definition at line 197 of file MWHttpRequestTestCase.php.
References $request, class, and MWHttpRequest\factory().
MWHttpRequestTestCase::testgetFinalUrl | ( | ) |
Definition at line 46 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testGetResponseHeaders | ( | ) |
Definition at line 120 of file MWHttpRequestTestCase.php.
References $request, and MWHttpRequest\factory().
MWHttpRequestTestCase::testGetStatus | ( | ) |
Definition at line 137 of file MWHttpRequestTestCase.php.
References $request, and MWHttpRequest\factory().
MWHttpRequestTestCase::testIsRedirect | ( | ) |
Definition at line 34 of file MWHttpRequestTestCase.php.
References $request, and MWHttpRequest\factory().
MWHttpRequestTestCase::testSetCallback | ( | ) |
Definition at line 160 of file MWHttpRequestTestCase.php.
References $content, $request, MWHttpRequest\factory(), and use.
MWHttpRequestTestCase::testSetCookie | ( | ) |
Definition at line 81 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testSetCookieJar | ( | ) |
Definition at line 90 of file MWHttpRequestTestCase.php.
References $request, assertHasCookie(), assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testSetData | ( | ) |
Definition at line 152 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testSetHeader | ( | ) |
Definition at line 129 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
MWHttpRequestTestCase::testSetUserAgent | ( | ) |
Definition at line 144 of file MWHttpRequestTestCase.php.
References $request, assertResponseFieldValue(), and MWHttpRequest\factory().
|
staticprotected |
Definition at line 6 of file MWHttpRequestTestCase.php.
|
protected |
Definition at line 7 of file MWHttpRequestTestCase.php.
Referenced by tearDown().