From cbd400e210e2d0f1f1628483acc417e80dc0672c Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Fri, 9 Apr 2021 09:35:31 +0200 Subject: [PATCH] DX: UtilsTest - add missing teardown --- tests/UtilsTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 122db36c739..fbf5edc5e39 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -30,6 +30,18 @@ final class UtilsTest extends TestCase { use ExpectDeprecationTrait; + private $originalValueOfFutureMode; + + protected function doSetUp() + { + $this->originalValueOfFutureMode = getenv('PHP_CS_FIXER_FUTURE_MODE'); + } + + protected function doTearDown() + { + putenv("PHP_CS_FIXER_FUTURE_MODE={$this->originalValueOfFutureMode}"); + } + /** * @param string $expected Camel case string * @param string $input Input string