aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/request/request_test.php')
-rw-r--r--tests/request/request_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/request/request_test.php b/tests/request/request_test.php
index ebaea1f9ef..d03253ceb9 100644
--- a/tests/request/request_test.php
+++ b/tests/request/request_test.php
@@ -19,7 +19,7 @@ class phpbb_request_test extends phpbb_test_case
/** @var \phpbb\request\request */
private $request;
- protected function setUp()
+ protected function setUp(): void
{
// populate super globals
$_POST['test'] = 1;
@@ -39,7 +39,7 @@ class phpbb_request_test extends phpbb_test_case
$_SERVER['HTTP_ACCEPT'] = 'application/json';
$_SERVER['HTTP_SOMEVAR'] = '<value>';
- $this->type_cast_helper = $this->getMock('\phpbb\request\type_cast_helper_interface');
+ $this->type_cast_helper = $this->createMock('\phpbb\request\type_cast_helper_interface');
$this->request = new \phpbb\request\request($this->type_cast_helper);
}
@@ -264,7 +264,7 @@ class phpbb_request_test extends phpbb_test_case
/**
* Makes sure super globals work properly after these tests
*/
- protected function tearDown()
+ protected function tearDown(): void
{
$this->request->enable_super_globals();
}