From: Gunnar Wrobel Date: Wed, 1 Dec 2010 14:18:16 +0000 (+0100) Subject: Add setUp and tearDown to avoid side effects. Remove useless test. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=430a033182e1718b78ee3174f672c97668675407;p=horde.git Add setUp and tearDown to avoid side effects. Remove useless test. --- 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');