Skip to content

Commit

Permalink
Migrate to static data providers using rector/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Feb 14, 2023
1 parent 4340667 commit c45210b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/DotenvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testParseWithFormatError($data, $error)
}
}

public function getEnvDataWithFormatErrors()
public static function getEnvDataWithFormatErrors()
{
$tests = [
['FOO=BAR BAZ', "A value containing spaces must be surrounded by quotes in \".env\" at line 1.\n...FOO=BAR BAZ...\n ^ line 1 offset 11"],
Expand Down Expand Up @@ -71,7 +71,7 @@ public function testParse($data, $expected)
$this->assertSame($expected, $dotenv->parse($data));
}

public function getEnvData()
public static function getEnvData()
{
putenv('LOCAL=local');
$_ENV['LOCAL'] = 'local';
Expand Down

0 comments on commit c45210b

Please sign in to comment.