You are here

public function SanitizerTestRequest::__construct in Drupal 7

Constructor.

Parameters

array $query: The GET parameters.

array $request: The POST parameters.

array $attributes: The request attributes.

array $cookies: The COOKIE parameters.

File

modules/simpletest/tests/request_sanitizer.test, line 319
Tests for the RequestSanitizer class.

Class

SanitizerTestRequest
Basic HTTP Request class.

Code

public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array()) {
  $this->query = $query;
  $this->request = $request;
  $this->attributes = $attributes;
  $this->cookies = $cookies;
}