MediaWiki REL1_31
MockWebRequest.php
Go to the documentation of this file.
1<?php
2
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}
A mock WebRequest.
response()
Return a handle to WebResponse style object, for setting cookies, headers and other stuff,...
WebResponse $response
__construct(WebResponse $response)
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
Allow programs to request this object from WebRequest::response() and handle all outputting (or lack ...