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
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 17:27:18 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 17:27:18 +0300
commit3a7cf40aaa678bea1df143d2982d603b7a334eec (patch)
tree63c1e3ad7f7f401d14411a4d44c523632906afc9 /tests/lib/Session
parent0568b012672d650c6b5a49e72c4028dde5463c60 (diff)
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Session')
-rw-r--r--tests/lib/Session/MemoryTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Session/MemoryTest.php b/tests/lib/Session/MemoryTest.php
index 7b60e0197f4..79053ccb1c8 100644
--- a/tests/lib/Session/MemoryTest.php
+++ b/tests/lib/Session/MemoryTest.php
@@ -16,10 +16,10 @@ class MemoryTest extends Session {
$this->instance = new \OC\Session\Memory($this->getUniqueID());
}
- /**
- * @expectedException \OCP\Session\Exceptions\SessionNotAvailableException
- */
+
public function testThrowsExceptionOnGetId() {
+ $this->expectException(\OCP\Session\Exceptions\SessionNotAvailableException::class);
+
$this->instance->getId();
}