Skip to content

Commit

Permalink
[Tests] Migrate data providers to static ones
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois authored and nicolas-grekas committed Feb 6, 2023
1 parent 675e51d commit 7432eef
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 @@ -124,14 +124,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 @@ -2390,7 +2390,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 7432eef

Please sign in to comment.