mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Unset more properties to free more memory
This commit is contained in:
parent
dbbc8400b6
commit
b45fe026f5
1 changed files with 3 additions and 2 deletions
|
@ -84,8 +84,6 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
$result = parent::run($result);
|
$result = parent::run($result);
|
||||||
if (!empty($this->fixtureManager)) {
|
if (!empty($this->fixtureManager)) {
|
||||||
$this->fixtureManager->unload($this);
|
$this->fixtureManager->unload($this);
|
||||||
unset($this->fixtureManager);
|
|
||||||
unset($this->fixtures);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = ob_get_level(); $i < $level; ++$i) {
|
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']) {
|
if (isset($_GET['debug']) && $_GET['debug']) {
|
||||||
ob_flush();
|
ob_flush();
|
||||||
}
|
}
|
||||||
|
unset($this->db);
|
||||||
|
unset($this->fixtureManager);
|
||||||
|
unset($this->fixtures);
|
||||||
unset($this->_configure);
|
unset($this->_configure);
|
||||||
unset($this->_pathRestore);
|
unset($this->_pathRestore);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue