mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Move unset to the proper place
This commit is contained in:
parent
cb23bf9223
commit
727aac1713
1 changed files with 2 additions and 2 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) {
|
||||
|
@ -165,8 +167,6 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
|
|||
ob_flush();
|
||||
}
|
||||
unset($this->db);
|
||||
unset($this->fixtureManager);
|
||||
unset($this->fixtures);
|
||||
unset($this->_configure);
|
||||
unset($this->_pathRestore);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue