summaryrefslogtreecommitdiffstats
path: root/tests/lib/Session
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/Session
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/Session')
-rw-r--r--tests/lib/Session/CryptoSessionDataTest.php2
-rw-r--r--tests/lib/Session/CryptoWrappingTest.php2
-rw-r--r--tests/lib/Session/MemoryTest.php2
-rw-r--r--tests/lib/Session/Session.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Session/CryptoSessionDataTest.php b/tests/lib/Session/CryptoSessionDataTest.php
index ee6bcbf11c1..472856b90d9 100644
--- a/tests/lib/Session/CryptoSessionDataTest.php
+++ b/tests/lib/Session/CryptoSessionDataTest.php
@@ -30,7 +30,7 @@ class CryptoSessionDataTest extends Session {
/** @var \OCP\ISession */
protected $wrappedSession;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->wrappedSession = new \OC\Session\Memory($this->getUniqueID());
diff --git a/tests/lib/Session/CryptoWrappingTest.php b/tests/lib/Session/CryptoWrappingTest.php
index f34148fb50e..493d16bfbfb 100644
--- a/tests/lib/Session/CryptoWrappingTest.php
+++ b/tests/lib/Session/CryptoWrappingTest.php
@@ -35,7 +35,7 @@ class CryptoWrappingTest extends TestCase {
/** @var \OC\Session\CryptoSessionData */
protected $instance;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->wrappedSession = $this->getMockBuilder(ISession::class)
diff --git a/tests/lib/Session/MemoryTest.php b/tests/lib/Session/MemoryTest.php
index d92d7b90e5e..7b60e0197f4 100644
--- a/tests/lib/Session/MemoryTest.php
+++ b/tests/lib/Session/MemoryTest.php
@@ -11,7 +11,7 @@ namespace Test\Session;
class MemoryTest extends Session {
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->instance = new \OC\Session\Memory($this->getUniqueID());
}
diff --git a/tests/lib/Session/Session.php b/tests/lib/Session/Session.php
index a1ed01b2ec8..0c947b8d302 100644
--- a/tests/lib/Session/Session.php
+++ b/tests/lib/Session/Session.php
@@ -15,7 +15,7 @@ abstract class Session extends \Test\TestCase {
*/
protected $instance;
- protected function tearDown() {
+ protected function tearDown(): void {
$this->instance->clear();
parent::tearDown();
}