Parcourir la source

set Zend_Session:: = true in Zend_Application_Resource_SessionTest::testInitSetsSaveHandler to avoid issue with PHPUnit 3.6

Rob Allen il y a 12 ans
Parent
commit
9f5e73a783
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      tests/Zend/Application/Resource/SessionTest.php

+ 2 - 0
tests/Zend/Application/Resource/SessionTest.php

@@ -91,6 +91,8 @@ class Zend_Application_Resource_SessionTest extends PHPUnit_Framework_TestCase
 
     public function testInitSetsSaveHandler()
     {
+        Zend_Session::$_unitTestEnabled = true;
+
         $saveHandler = $this->getMock('Zend_Session_SaveHandler_Interface');
 
         $this->resource->setSaveHandler($saveHandler);