From 8f60e1206e45e67c96a7630d4ff94e72fe875f09 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 26 Sep 2020 15:08:39 +0200 Subject: Comply with PHPUnit V8: setup/teardown functions must return void --- tests/security/BanManagerTest.php | 2 +- tests/security/LoginManagerTest.php | 2 +- tests/security/SessionManagerTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/security') diff --git a/tests/security/BanManagerTest.php b/tests/security/BanManagerTest.php index bba7c8ad..2fef82f5 100644 --- a/tests/security/BanManagerTest.php +++ b/tests/security/BanManagerTest.php @@ -32,7 +32,7 @@ class BanManagerTest extends TestCase /** * Prepare or reset test resources */ - public function setUp() + protected function setUp(): void { if (file_exists($this->banFile)) { unlink($this->banFile); diff --git a/tests/security/LoginManagerTest.php b/tests/security/LoginManagerTest.php index f242be09..cc9aa647 100644 --- a/tests/security/LoginManagerTest.php +++ b/tests/security/LoginManagerTest.php @@ -63,7 +63,7 @@ class LoginManagerTest extends TestCase /** * Prepare or reset test resources */ - public function setUp() + protected function setUp(): void { if (file_exists($this->banFile)) { unlink($this->banFile); diff --git a/tests/security/SessionManagerTest.php b/tests/security/SessionManagerTest.php index 11a59f9c..27e3b1a9 100644 --- a/tests/security/SessionManagerTest.php +++ b/tests/security/SessionManagerTest.php @@ -24,7 +24,7 @@ class SessionManagerTest extends TestCase /** * Assign reference data */ - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { self::$sidHashes = \ReferenceSessionIdHashes::getHashes(); } @@ -32,7 +32,7 @@ class SessionManagerTest extends TestCase /** * Initialize or reset test resources */ - public function setUp() + protected function setUp(): void { $this->conf = new \FakeConfigManager([ 'credentials.login' => 'johndoe', -- cgit v1.2.3