mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Free some memory in unit tests
This commit is contained in:
parent
8bfdcdb637
commit
dbbc8400b6
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue