diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-14 21:16:20 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-14 21:16:20 +0400 |
commit | fe05c0c81bba1e2203f6ec5c8fbe1007281e1d45 (patch) | |
tree | 03be1005d95bc20d6ea897386c2e7a281296bcdd /tests | |
parent | fc697c729811e5644e2c7bc884bd54d3ff092ac8 (diff) |
move session reset to endTest() - necessary because we need a valid session in the next unit tests setUp() call
Diffstat (limited to 'tests')
-rw-r--r-- | tests/startsessionlistener.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/startsessionlistener.php b/tests/startsessionlistener.php index fb7fa83e090..7559b8cff65 100644 --- a/tests/startsessionlistener.php +++ b/tests/startsessionlistener.php @@ -24,16 +24,14 @@ class StartSessionListener implements PHPUnit_Framework_TestListener { } public function startTest(PHPUnit_Framework_Test $test) { + } + public function endTest(PHPUnit_Framework_Test $test, $time) { // new session \OC::$session = new \OC\Session\Memory(''); // load the version OC_Util::getVersion(); - - } - - public function endTest(PHPUnit_Framework_Test $test, $time) { } public function startTestSuite(PHPUnit_Framework_TestSuite $suite) { |