Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move unset to the proper place
  • Loading branch information
bancer committed Aug 13, 2018
1 parent 727aac1 commit 0e02af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestCase.php
Expand Up @@ -86,6 +86,7 @@ public function run(PHPUnit_Framework_TestResult $result = null) {
$this->fixtureManager->unload($this);
unset($this->fixtureManager);
unset($this->fixtures);
unset($this->db);
}

for ($i = ob_get_level(); $i < $level; ++$i) {
Expand Down Expand Up @@ -166,7 +167,6 @@ public function tearDown() {
if (isset($_GET['debug']) && $_GET['debug']) {
ob_flush();
}
unset($this->db);
unset($this->_configure);
unset($this->_pathRestore);
}
Expand Down

0 comments on commit 0e02af0

Please sign in to comment.