From b45fe026f5aa627d2e6354aa6196a10fe81c8169 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Mon, 13 Aug 2018 14:20:29 +0200 Subject: [PATCH] Unset more properties to free more memory --- lib/Cake/TestSuite/CakeTestCase.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index aaa40b87a..2f75ea6a5 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -84,8 +84,6 @@ 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) { @@ -166,6 +164,9 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase { if (isset($_GET['debug']) && $_GET['debug']) { ob_flush(); } + unset($this->db); + unset($this->fixtureManager); + unset($this->fixtures); unset($this->_configure); unset($this->_pathRestore); }