Skip to content

Commit

Permalink
Unset more properties to free more memory
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Aug 13, 2018
1 parent dbbc840 commit b45fe02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/TestSuite/CakeTestCase.php
Expand Up @@ -84,8 +84,6 @@ public function run(PHPUnit_Framework_TestResult $result = null) {
$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) {
Expand Down Expand Up @@ -166,6 +164,9 @@ public function tearDown() {
if (isset($_GET['debug']) && $_GET['debug']) {
ob_flush();
}
unset($this->db);
unset($this->fixtureManager);
unset($this->fixtures);
unset($this->_configure);
unset($this->_pathRestore);
}
Expand Down

0 comments on commit b45fe02

Please sign in to comment.