Skip to content

Commit

Permalink
[ticket/14875] Add raw_variable() to request mock
Browse files Browse the repository at this point in the history
PHPBB3-14875
  • Loading branch information
marc1706 committed Dec 2, 2016
1 parent 9bdd002 commit d817f3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/mock/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public function overwrite($var_name, $value, $super_global = \phpbb\request\requ
$this->data[$super_global][$var_name] = $value;
}

public function raw_variable($var_name, $default, $super_global = \phpbb\request\request_interface::REQUEST)
{
return $this->variable($var_name, $default, true, $super_global);
}

public function variable($var_name, $default, $multibyte = false, $super_global = \phpbb\request\request_interface::REQUEST)
{
return isset($this->data[$super_global][$var_name]) ? $this->data[$super_global][$var_name] : $default;
Expand Down

0 comments on commit d817f3c

Please sign in to comment.