We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd00ea commit f12be42Copy full SHA for f12be42
tests/Rules/PHPUnit/DataProviderDeclarationRuleTest.php
@@ -30,7 +30,7 @@ protected function getRule(): Rule
30
}
31
32
/**
33
- * @dataProvider provideVersion
+ * @dataProvider provideVersions
34
*/
35
public function testRule(?int $version): void
36
{
@@ -99,11 +99,13 @@ public function testRule(?int $version): void
99
$this->analyse([__DIR__ . '/data/data-provider-declaration.php'], $errors);
100
101
102
- static public function provideVersion(): iterable
+ static public function provideVersions(): iterable
103
104
- yield [null];
105
- yield [9];
106
- yield [10];
+ return [
+ [null],
+ [9],
107
+ [10]
108
+ ];
109
110
111
public function testFixDataProviderStatic(): void
0 commit comments