Add setUp and tearDown to avoid side effects. Remove useless test.
authorGunnar Wrobel <p@rdus.de>
Wed, 1 Dec 2010 14:18:16 +0000 (15:18 +0100)
committerGunnar Wrobel <p@rdus.de>
Wed, 1 Dec 2010 14:18:16 +0000 (15:18 +0100)
framework/Kolab_Session/test/Horde/Kolab/Session/Integration/SessionTest.php [deleted file]
framework/Kolab_Session/test/Horde/Kolab/Session/Unit/Storage/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 (file)
index 7d005fe..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Test the valid check with the Kolab session handler implementation.
- *
- * PHP version 5
- *
- * @category Kolab
- * @package  Kolab_Session
- * @author   Gunnar Wrobel <wrobel@pardus.de>
- * @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 <wrobel@pardus.de>
- * @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
index 5ba0914..1737b54 100644 (file)
@@ -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');