Explorar el Código

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

Rob Allen hace 12 años
padre
commit
9f5e73a783
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);