diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-17 21:57:10 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-17 21:57:10 +0100 |
commit | 6bbbf8536f6d5d21eed906c42da1e12118e4112e (patch) | |
tree | 825b568ded0675360a34d085c6101e2ede0d7fbd /lib/private/session | |
parent | bbbbb033f32353ef1582a6f90305c4ad01e2390a (diff) | |
download | nextcloud-server-6bbbf8536f6d5d21eed906c42da1e12118e4112e.tar.gz nextcloud-server-6bbbf8536f6d5d21eed906c42da1e12118e4112e.zip |
introduce reopen() method to be used for unit test execution only - right after a unit test has been executed the session will be reopened
Diffstat (limited to 'lib/private/session')
-rw-r--r-- | lib/private/session/memory.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/session/memory.php b/lib/private/session/memory.php index 8434b6000e5..1497c0f8928 100644 --- a/lib/private/session/memory.php +++ b/lib/private/session/memory.php @@ -64,6 +64,13 @@ class Memory extends Session { } /** + * Helper function for PHPUnit execution - don't use in non-test code + */ + public function reopen() { + $this->sessionClosed = false; + } + + /** * In case the session has already been locked an exception will be thrown * * @throws \Exception |