From e56452b2c54381601cab17aac3eb013438a3ce8c Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Tue, 14 Aug 2018 12:31:58 +0200 Subject: [PATCH] Improve code style --- lib/Cake/TestSuite/CakeTestCase.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index a0b41f863..359700406 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -84,8 +84,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase { $result = parent::run($result); if (!empty($this->fixtureManager)) { $this->fixtureManager->unload($this); - unset($this->fixtureManager); - unset($this->db); + unset($this->fixtureManager, $this->db); } for ($i = ob_get_level(); $i < $level; ++$i) { @@ -166,8 +165,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase { if (isset($_GET['debug']) && $_GET['debug']) { ob_flush(); } - unset($this->_configure); - unset($this->_pathRestore); + unset($this->_configure, $this->_pathRestore); } /**