浏览代码

Do not destroy session, because Zend_Session_SaveHandler_DbTableTest::testSessionSaving needs it

Martin Hujer 12 年之前
父节点
当前提交
a9fe946087
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/Zend/Session/SessionTest.php

+ 2 - 0
tests/Zend/Session/SessionTest.php

@@ -1100,6 +1100,8 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
         $sid = Zend_Session::getId();
 
         // We don't need the session any more, clean it up
+        //but we don't to want to destroy it completely, while other tests can start
+        Zend_Session::$_unitTestEnabled = true; 
         Zend_Session::destroy();
         foreach ( $sessionCharSet as $subdir ) {
             @rmdir($sessionStore . DIRECTORY_SEPARATOR . $subdir);