Skip to content

Commit

Permalink
Move unset to the proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Aug 13, 2018
1 parent cb23bf9 commit 727aac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/TestSuite/CakeTestCase.php
Expand Up @@ -84,6 +84,8 @@ public function run(PHPUnit_Framework_TestResult $result = null) {
$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) {
Expand Down Expand Up @@ -165,8 +167,6 @@ public function tearDown() {
ob_flush();
}
unset($this->db);
unset($this->fixtureManager);
unset($this->fixtures);
unset($this->_configure);
unset($this->_pathRestore);
}
Expand Down

0 comments on commit 727aac1

Please sign in to comment.