aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Memcache
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-21 16:40:38 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:41 +0100
commitc007ca624f4a95e1a491221d425fcb2fa6e5589a (patch)
treeb60aa133b438eb116ac3579283aa8a7967efd12b /tests/lib/Memcache
parente0f32814e33f9ebb8c42744611048cbfac1eb588 (diff)
downloadnextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.tar.gz
nextcloud-server-c007ca624f4a95e1a491221d425fcb2fa6e5589a.zip
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Memcache')
-rw-r--r--tests/lib/Memcache/APCuTest.php2
-rw-r--r--tests/lib/Memcache/ArrayCacheTest.php2
-rw-r--r--tests/lib/Memcache/Cache.php2
-rw-r--r--tests/lib/Memcache/MemcachedTest.php4
-rw-r--r--tests/lib/Memcache/RedisTest.php4
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/Memcache/APCuTest.php b/tests/lib/Memcache/APCuTest.php
index 41de75a8ea8..199acbe263b 100644
--- a/tests/lib/Memcache/APCuTest.php
+++ b/tests/lib/Memcache/APCuTest.php
@@ -10,7 +10,7 @@
namespace Test\Memcache;
class APCuTest extends Cache {
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
if(!\OC\Memcache\APCu::isAvailable()) {
diff --git a/tests/lib/Memcache/ArrayCacheTest.php b/tests/lib/Memcache/ArrayCacheTest.php
index 3ae8c116a01..4e3623d344d 100644
--- a/tests/lib/Memcache/ArrayCacheTest.php
+++ b/tests/lib/Memcache/ArrayCacheTest.php
@@ -10,7 +10,7 @@
namespace Test\Memcache;
class ArrayCacheTest extends Cache {
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->instance = new \OC\Memcache\ArrayCache('');
}
diff --git a/tests/lib/Memcache/Cache.php b/tests/lib/Memcache/Cache.php
index 8d6a231dd8d..ab316738c9c 100644
--- a/tests/lib/Memcache/Cache.php
+++ b/tests/lib/Memcache/Cache.php
@@ -123,7 +123,7 @@ abstract class Cache extends \Test\Cache\TestCache {
}
- protected function tearDown() {
+ protected function tearDown(): void {
if ($this->instance) {
$this->instance->clear();
}
diff --git a/tests/lib/Memcache/MemcachedTest.php b/tests/lib/Memcache/MemcachedTest.php
index 865d8594bbb..96b88992665 100644
--- a/tests/lib/Memcache/MemcachedTest.php
+++ b/tests/lib/Memcache/MemcachedTest.php
@@ -10,7 +10,7 @@
namespace Test\Memcache;
class MemcachedTest extends Cache {
- static public function setUpBeforeClass() {
+ static public function setUpBeforeClass(): void {
parent::setUpBeforeClass();
if (!\OC\Memcache\Memcached::isAvailable()) {
@@ -22,7 +22,7 @@ class MemcachedTest extends Cache {
}
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->instance = new \OC\Memcache\Memcached($this->getUniqueID());
}
diff --git a/tests/lib/Memcache/RedisTest.php b/tests/lib/Memcache/RedisTest.php
index 6a0a82f6aa7..ba16b4a2bf1 100644
--- a/tests/lib/Memcache/RedisTest.php
+++ b/tests/lib/Memcache/RedisTest.php
@@ -10,7 +10,7 @@
namespace Test\Memcache;
class RedisTest extends Cache {
- static public function setUpBeforeClass() {
+ static public function setUpBeforeClass(): void {
parent::setUpBeforeClass();
if (!\OC\Memcache\Redis::isAvailable()) {
@@ -44,7 +44,7 @@ class RedisTest extends Cache {
}
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->instance = new \OC\Memcache\Redis($this->getUniqueID());
}