Skip to content

Commit

Permalink
Merge branch '5.4' into 6.2
Browse files Browse the repository at this point in the history
* 5.4:
  [Serializer] Fix CsvEncoder decode on empty data
  [Tests] Migrate data providers to static ones
  stop using assertObjectHasAttribute()/assertObjectHasNotAttribute()
  [Dotenv] Fix phpdoc Dotenv
  [Config] Fix phpdoc nullable
  Fix some typos
  • Loading branch information
nicolas-grekas committed Feb 6, 2023
2 parents 100be1d + 7432eef commit 97235cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ public function testSpecifications($expected, $yaml, $comment)
$this->assertEquals($expected, var_export($this->parser->parse($yaml), true), $comment);
}

public function getDataFormSpecifications()
public static function getDataFormSpecifications()
{
return $this->loadTestsFromFixtureFiles('index.yml');
return self::loadTestsFromFixtureFiles('index.yml');
}

public function getNonStringMappingKeysData()
public static function getNonStringMappingKeysData()
{
return $this->loadTestsFromFixtureFiles('nonStringKeys.yml');
return self::loadTestsFromFixtureFiles('nonStringKeys.yml');
}

/**
Expand Down Expand Up @@ -2392,7 +2392,7 @@ public function testParsingIniThrowsException()
$this->parser->parse($ini);
}

private function loadTestsFromFixtureFiles($testsFile)
private static function loadTestsFromFixtureFiles($testsFile)
{
$parser = new Parser();

Expand Down

0 comments on commit 97235cb

Please sign in to comment.