I am testing the authentication features of my site. Zend_Auth uses as an authorization mechanism. But auth status remains between tests, and I need to write "logout" in each tearDown.
Now everything is all right. But the problem is the following. As far as I know, Zend_Auth uses Zend_Session to store auth data. Thus, the session is common to all tests. I am afraid that this may cause problems in the future.
Can you tell me what is the best way to do sessions for each isolated test?
Now I can only imagine a manual start session in setUp and stop at tearDown. But I have a lot of tests, and implementing this can take a long time.
darja source share