Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-18 00:57:10 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-18 00:57:10 +0400
commit6bbbf8536f6d5d21eed906c42da1e12118e4112e (patch)
tree825b568ded0675360a34d085c6101e2ede0d7fbd /lib
parentbbbbb033f32353ef1582a6f90305c4ad01e2390a (diff)
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')
-rw-r--r--lib/private/session/memory.php7
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