I am testing authentification functionality of my site. Zend_Auth is using as authorization engine. But auth status remains between tests and I need to write 'logout' in every tearDown.
Now everything is all right. But the problem is following. As for I know Zend_Auth uses Zend_Session for storing auth data. So, session is common for all tests. I am affraid that in future it can cause problems.
Can you tell me what is the best practice to make sessions for each test isolated?
Now I can imagine only manually starting session in setUp and stop in tearDown. But I have many tests and implementing this can take a lot of time.