7 use MediaWikiCoversValidator;
8 use PHPUnit4And6Compat;
30 $session = SessionManager::singleton()->getEmptySession(
new FauxRequest( [] ) );
67 $this->
assertSame(
null,
$req->getRawVal(
'y' ),
'Array is ignored' );
75 $values = [
'x' =>
'Value',
'y' =>
'' ];
84 $values = [
'x' =>
'Value',
'y' =>
'' ];
121 $req->setCookie(
'x',
'Value',
'' );
124 $req->setCookies( [
'x' =>
'One',
'y' =>
'Two' ],
'' );
142 $req->setCookie(
'x',
'Value' );
154 $req->getRequestURL();
163 $req->setRequestURL(
'https://example.org' );
186 $value =
'text/plain, text/html';
196 $request->getHeader(
'Accept', WebRequest::GETHEADER_LIST ),
197 [
'text/plain',
'text/html' ]
205 $_SERVER[
'HTTP_TEST'] =
'Example';
225 $values = [
'x' =>
'Value',
'y' =>
'' ];
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
testGetRequestURL()
FauxRequest::getRequestURL.
testDummies()
FauxRequest::getRawQueryString FauxRequest::getRawPostString FauxRequest::getRawInput.
testConstructInvalidSession()
FauxRequest::__construct.
testSetRequestURL()
FauxRequest::setRequestURL FauxRequest::getRequestURL.
testWasPosted()
FauxRequest::wasPosted.
testProtocol()
FauxRequest::__construct FauxRequest::getProtocol.
testGetText()
FauxRequest::getText.
testConstructInvalidData()
FauxRequest::__construct.
testSessionData()
FauxRequest::__construct FauxRequest::getSessionArray.
testCookies()
FauxRequest::getCookie FauxRequest::setCookie FauxRequest::setCookies.
testGetVal()
Integration test for parent method FauxRequest::getVal.
testCookiesDefaultPrefix()
FauxRequest::getCookie FauxRequest::setCookie FauxRequest::setCookies.
testConstructWithSession()
FauxRequest::__construct.
testGetMethod()
FauxRequest::getMethod.
testGetSetHeader()
FauxRequest::setHeader FauxRequest::setHeaders FauxRequest::getHeader.
testGetValues()
FauxRequest::getValues.
testGetRawVal()
Integration test for parent method FauxRequest::getRawVal.
testGetQueryValues()
FauxRequest::getQueryValues.
testGetAllHeaders()
FauxRequest::initHeaders.
WebRequest clone which takes values from a provided array.
this hook is for auditing only $req
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request