summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-12-27 20:32:02 +0100
committerArnold Daniels <arnold@jasny.net>2016-12-27 20:32:02 +0100
commitbfd4d345994958bed09201a8c0195bed77708e09 (patch)
treece3cfe2b0a080a21a3a007bb95697867fa491234
parentac603f8de1d7cfb24f22fc125b399756d047ebfe (diff)
downloadauth-bfd4d345994958bed09201a8c0195bed77708e09.zip
auth-bfd4d345994958bed09201a8c0195bed77708e09.tar.gz
auth-bfd4d345994958bed09201a8c0195bed77708e09.tar.bz2
Fixed broken SessionTest on PHP 7
-rw-r--r--tests/Auth/SessionsTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Auth/SessionsTest.php b/tests/Auth/SessionsTest.php
index 8cc2771..211fde6 100644
--- a/tests/Auth/SessionsTest.php
+++ b/tests/Auth/SessionsTest.php
@@ -32,7 +32,9 @@ class SessionsAuth extends TestCase
ini_set('session.use_only_cookies', 0);
$this->sessionModule = session_module_name();
- session_set_save_handler($this->createMock(\SessionHandlerInterface::class));
+
+ $void = function () { return true; };
+ session_set_save_handler($void, $void, $void, $void, $void, $void);
session_start();
}