diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index 56fefb487..aaa40b87a 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -84,6 +84,8 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase { $result = parent::run($result); if (!empty($this->fixtureManager)) { $this->fixtureManager->unload($this); + unset($this->fixtureManager); + unset($this->fixtures); } for ($i = ob_get_level(); $i < $level; ++$i) { @@ -164,6 +166,8 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase { if (isset($_GET['debug']) && $_GET['debug']) { ob_flush(); } + unset($this->_configure); + unset($this->_pathRestore); } /**