2
0
Просмотр исходного кода

Merge pull request #219 from mhujer/dont-destroy-session

Do not destroy session in SessionTest, because Zend_Session_SaveHandler_DbTableTest needs it
Matthew Weier O'Phinney 12 лет назад
Родитель
Сommit
2a80e30776
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);