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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/security/BanManagerTest.php') 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); -- cgit v1.2.3 From a5a9cf23acd1248585173aa32757d9720b5f2d62 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 14:41:40 +0200 Subject: Compatibility with PHPUnit 9 --- tests/security/BanManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/security/BanManagerTest.php') diff --git a/tests/security/BanManagerTest.php b/tests/security/BanManagerTest.php index 2fef82f5..698d3d10 100644 --- a/tests/security/BanManagerTest.php +++ b/tests/security/BanManagerTest.php @@ -3,8 +3,8 @@ namespace Shaarli\Security; -use PHPUnit\Framework\TestCase; use Shaarli\FileUtils; +use Shaarli\TestCase; /** * Test coverage for BanManager -- cgit v1.2.3