Skip to content

Commit 7432eef

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Tests] Migrate data providers to static ones
1 parent 675e51d commit 7432eef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/ParserTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ public function testSpecifications($expected, $yaml, $comment)
124124
$this->assertEquals($expected, var_export($this->parser->parse($yaml), true), $comment);
125125
}
126126

127-
public function getDataFormSpecifications()
127+
public static function getDataFormSpecifications()
128128
{
129-
return $this->loadTestsFromFixtureFiles('index.yml');
129+
return self::loadTestsFromFixtureFiles('index.yml');
130130
}
131131

132-
public function getNonStringMappingKeysData()
132+
public static function getNonStringMappingKeysData()
133133
{
134-
return $this->loadTestsFromFixtureFiles('nonStringKeys.yml');
134+
return self::loadTestsFromFixtureFiles('nonStringKeys.yml');
135135
}
136136

137137
/**
@@ -2390,7 +2390,7 @@ public function testParsingIniThrowsException()
23902390
$this->parser->parse($ini);
23912391
}
23922392

2393-
private function loadTestsFromFixtureFiles($testsFile)
2393+
private static function loadTestsFromFixtureFiles($testsFile)
23942394
{
23952395
$parser = new Parser();
23962396

0 commit comments

Comments
 (0)