Move unset to the proper place

This commit is contained in:
Val Bancer 2018-08-13 15:06:19 +02:00 committed by GitHub
parent cb23bf9223
commit 727aac1713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,8 @@ 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) {
@ -165,8 +167,6 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
ob_flush(); ob_flush();
} }
unset($this->db); unset($this->db);
unset($this->fixtureManager);
unset($this->fixtures);
unset($this->_configure); unset($this->_configure);
unset($this->_pathRestore); unset($this->_pathRestore);
} }