Advertisement
dragonbe

Fixing a session issue with testing

Oct 2nd, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
  2. {
  3.  
  4.     protected function setUp()
  5.     {
  6.         Zend_Session::$_unitTestEnabled = 1;
  7.     }
  8.  
  9.     protected function tearDown()
  10.     {
  11.         Zend_Session::namespaceUnset('fooSession');
  12.         Zend_Session::expireSessionCookie();
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement