Move unset to the proper place

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

View file

@ -86,6 +86,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
$this->fixtureManager->unload($this); $this->fixtureManager->unload($this);
unset($this->fixtureManager); unset($this->fixtureManager);
unset($this->fixtures); unset($this->fixtures);
unset($this->db);
} }
for ($i = ob_get_level(); $i < $level; ++$i) { for ($i = ob_get_level(); $i < $level; ++$i) {
@ -166,7 +167,6 @@ 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->_configure); unset($this->_configure);
unset($this->_pathRestore); unset($this->_pathRestore);
} }