diff --git a/tests/Core/Config/ReportWidthTest.php b/tests/Core/Config/ReportWidthTest.php index d10e7a07d9..d5e4ff58d5 100644 --- a/tests/Core/Config/ReportWidthTest.php +++ b/tests/Core/Config/ReportWidthTest.php @@ -29,7 +29,7 @@ final class ReportWidthTest extends TestCase * * @return void */ - public static function cleanConfig() + protected function cleanConfig() { // Set to the property's default value to clear out potentially set values from other tests. self::setStaticProperty('executablePaths', []); @@ -52,7 +52,7 @@ public static function cleanConfig() * * @return void */ - public function resetConfig() + protected function resetConfig() { $_SERVER['argv'] = []; diff --git a/tests/Core/Ruleset/ExpandRulesetReferenceHomePathTest.php b/tests/Core/Ruleset/ExpandRulesetReferenceHomePathTest.php index c16da4315c..10a4dd9813 100644 --- a/tests/Core/Ruleset/ExpandRulesetReferenceHomePathTest.php +++ b/tests/Core/Ruleset/ExpandRulesetReferenceHomePathTest.php @@ -36,9 +36,9 @@ final class ExpandRulesetReferenceHomePathTest extends AbstractRulesetTestCase * * @return void */ - protected function storeHomePath() + public static function storeHomePath() { - $this->homepath = getenv('HOME'); + self::$homepath = getenv('HOME'); }//end storeHomePath() @@ -50,10 +50,10 @@ protected function storeHomePath() * * @return void */ - protected function restoreHomePath() + public static function restoreHomePath() { - if (is_string($this->homepath) === true) { - putenv('HOME='.$this->homepath); + if (is_string(self::$homepath) === true) { + putenv('HOME='.self::$homepath); } else { // Remove the environment variable as it didn't exist before. putenv('HOME'); diff --git a/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.php b/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.php index 1955ce2a43..6eb0d1a208 100644 --- a/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.php +++ b/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.php @@ -50,7 +50,7 @@ final class RuleInclusionAbsoluteLinuxTest extends TestCase * * @return void */ - public function initializeConfigAndRuleset() + protected function initializeConfigAndRuleset() { $this->standard = __DIR__.'/'.basename(__FILE__, '.php').'.xml'; $repoRootDir = dirname(dirname(dirname(__DIR__))); @@ -84,7 +84,7 @@ public function initializeConfigAndRuleset() * * @return void */ - public function resetRuleset() + protected function resetRuleset() { file_put_contents($this->standard, $this->contents); diff --git a/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php b/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php index 9dd0370b28..fc5d654885 100644 --- a/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php +++ b/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php @@ -52,7 +52,7 @@ final class RuleInclusionAbsoluteWindowsTest extends TestCase * * @return void */ - public function initializeConfigAndRuleset() + protected function initializeConfigAndRuleset() { $this->standard = __DIR__.'/'.basename(__FILE__, '.php').'.xml'; $repoRootDir = dirname(dirname(dirname(__DIR__))); @@ -81,7 +81,7 @@ public function initializeConfigAndRuleset() * * @return void */ - public function resetRuleset() + protected function resetRuleset() { file_put_contents($this->standard, $this->contents); diff --git a/tests/Core/Ruleset/RuleInclusionTest.php b/tests/Core/Ruleset/RuleInclusionTest.php index f6d7b5478d..d91a6c2590 100644 --- a/tests/Core/Ruleset/RuleInclusionTest.php +++ b/tests/Core/Ruleset/RuleInclusionTest.php @@ -50,7 +50,7 @@ final class RuleInclusionTest extends AbstractRulesetTestCase * * @return void */ - public static function initializeConfigAndRuleset() + protected function initializeConfigAndRuleset() { if (self::$standard === '') { $standard = __DIR__.'/'.basename(__FILE__, '.php').'.xml';