MediaWiki
REL1_31
MockWebRequest.php
Go to the documentation of this file.
1
<?php
2
10
class
MockWebRequest
extends
WebRequest
{
14
protected
$response
;
15
16
public
function
__construct
(
WebResponse
$response
) {
17
parent::__construct();
18
19
$this->
response
=
$response
;
20
}
21
22
public
function
response
() {
23
return
$this->response
;
24
}
25
}
MockWebRequest
A mock WebRequest.
Definition
MockWebRequest.php:10
MockWebRequest\response
response()
Return a handle to WebResponse style object, for setting cookies, headers and other stuff,...
Definition
MockWebRequest.php:22
MockWebRequest\$response
WebResponse $response
Definition
MockWebRequest.php:14
MockWebRequest\__construct
__construct(WebResponse $response)
Definition
MockWebRequest.php:16
WebRequest
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
Definition
WebRequest.php:38
WebResponse
Allow programs to request this object from WebRequest::response() and handle all outputting (or lack ...
Definition
WebResponse.php:30
tests
phpunit
mocks
MockWebRequest.php
Generated on Mon Nov 25 2024 15:36:44 for MediaWiki by
1.10.0