Moving parent call to fix fatal errors caused by registry being empty.

This commit is contained in:
mark_story 2010-09-28 00:03:23 -04:00
parent 237b66d193
commit 3a14f780b9

View file

@ -98,12 +98,12 @@ class CakeSessionTest extends CakeTestCase {
* @return void
*/
function teardown() {
parent::teardown();
if (TestCakeSession::started()) {
CakeSession::destroy();
TestCakeSession::destroy();
}
unset($_SESSION);
@session_destroy();
parent::teardown();
}
/**