Skip to content

Commit

Permalink
DX: UtilsTest - add missing teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Apr 11, 2021
1 parent 063a142 commit cbd400e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/UtilsTest.php
Expand Up @@ -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
Expand Down

0 comments on commit cbd400e

Please sign in to comment.