6 * If the code under test accesses the response via the request (see
7 * WebRequest#response), then you might be able to use this mock to simplify
10 class MockWebRequest
extends WebRequest
17 public function __construct( WebResponse
$response ) {
18 parent
::__construct();
20 $this->response
= $response;
23 public function response() {
24 return $this->response
;