mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 20:50:30 +01:00
[ticket/14875] Add raw_variable() to request mock
PHPBB3-14875
This commit is contained in:
parent
9bdd002f58
commit
d817f3cc67
@ -34,6 +34,11 @@ class phpbb_mock_request implements \phpbb\request\request_interface
|
||||
$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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user