From 430a033182e1718b78ee3174f672c97668675407 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Wed, 1 Dec 2010 15:18:16 +0100 Subject: [PATCH] Add setUp and tearDown to avoid side effects. Remove useless test. --- .../Kolab/Session/Integration/SessionTest.php | 38 ---------------------- .../Kolab/Session/Unit/Storage/SessionTest.php | 10 ++++++ 2 files changed, 10 insertions(+), 38 deletions(-) delete mode 100644 framework/Kolab_Session/test/Horde/Kolab/Session/Integration/SessionTest.php diff --git a/framework/Kolab_Session/test/Horde/Kolab/Session/Integration/SessionTest.php b/framework/Kolab_Session/test/Horde/Kolab/Session/Integration/SessionTest.php deleted file mode 100644 index 7d005fed3..000000000 --- a/framework/Kolab_Session/test/Horde/Kolab/Session/Integration/SessionTest.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @license http://www.fsf.org/copyleft/lgpl.html LGPL - * @link http://pear.horde.org/index.php?package=Kolab_Session - */ - -/** - * Prepare the test setup. - */ -require_once dirname(__FILE__) . '/../Autoload.php'; - -/** - * Test the valid check with the Kolab session handler implementation. - * - * Copyright 2009-2010 The Horde Project (http://www.horde.org/) - * - * See the enclosed file COPYING for license information (LGPL). If you - * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. - * - * @category Kolab - * @package Kolab_Session - * @author Gunnar Wrobel - * @license http://www.fsf.org/copyleft/lgpl.html LGPL - * @link http://pear.horde.org/index.php?package=Kolab_Session - */ -class Horde_Kolab_Session_Integration_SessionTest extends Horde_Kolab_Session_TestCase -{ - public function test() - { - } -} \ No newline at end of file diff --git a/framework/Kolab_Session/test/Horde/Kolab/Session/Unit/Storage/SessionTest.php b/framework/Kolab_Session/test/Horde/Kolab/Session/Unit/Storage/SessionTest.php index 5ba0914db..1737b5487 100644 --- a/framework/Kolab_Session/test/Horde/Kolab/Session/Unit/Storage/SessionTest.php +++ b/framework/Kolab_Session/test/Horde/Kolab/Session/Unit/Storage/SessionTest.php @@ -32,6 +32,16 @@ require_once dirname(__FILE__) . '/../../Autoload.php'; */ class Horde_Kolab_Session_Unit_Storage_SessionTest extends Horde_Kolab_Session_TestCase { + public function setUp() + { + $_SESSION = array(); + } + + public function tearDown() + { + unset($_SESSION['kolab_session']); + } + public function testLoad() { $_SESSION['kolab_session'] = array('data'); -- 2.11.0