aboutsummaryrefslogtreecommitdiffstats
path: root/tests/version
diff options
context:
space:
mode:
Diffstat (limited to 'tests/version')
-rw-r--r--tests/version/version_fetch_test.php2
-rw-r--r--tests/version/version_helper_remote_test.php8
-rw-r--r--tests/version/version_test.php2
3 files changed, 8 insertions, 4 deletions
diff --git a/tests/version/version_fetch_test.php b/tests/version/version_fetch_test.php
index c44bd5514a..188b371c47 100644
--- a/tests/version/version_fetch_test.php
+++ b/tests/version/version_fetch_test.php
@@ -16,7 +16,7 @@
*/
class phpbb_version_helper_fetch_test extends phpbb_test_case
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/version/version_helper_remote_test.php b/tests/version/version_helper_remote_test.php
index 35c3d92a3a..e15ff897b0 100644
--- a/tests/version/version_helper_remote_test.php
+++ b/tests/version/version_helper_remote_test.php
@@ -17,7 +17,7 @@ class version_helper_remote_test extends \phpbb_test_case
protected $cache;
protected $version_helper;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -30,7 +30,11 @@ class version_helper_remote_test extends \phpbb_test_case
));
$container = new \phpbb_mock_container_builder();
$db = new \phpbb\db\driver\factory($container);
- $this->cache = $this->getMock('\phpbb\cache\service', array('get'), array(new \phpbb\cache\driver\dummy(), $config, $db, '../../', 'php'));
+ $this->cache = $this->getMockBuilder('\phpbb\cache\service')
+ ->setMethods(array('get'))
+ ->setConstructorArgs(array(new \phpbb\cache\driver\dummy(), $config, $db, '../../', 'php'))
+ ->getMock();
+
$this->cache->expects($this->any())
->method('get')
->with($this->anything())
diff --git a/tests/version/version_test.php b/tests/version/version_test.php
index 2a0240f847..3298213487 100644
--- a/tests/version/version_test.php
+++ b/tests/version/version_test.php
@@ -13,7 +13,7 @@
class phpbb_version_helper_test extends phpbb_test_case
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();