Skip to content

Commit f12be42

Browse files
committed
Update DataProviderDeclarationRuleTest.php
1 parent fcd00ea commit f12be42

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/Rules/PHPUnit/DataProviderDeclarationRuleTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function getRule(): Rule
3030
}
3131

3232
/**
33-
* @dataProvider provideVersion
33+
* @dataProvider provideVersions
3434
*/
3535
public function testRule(?int $version): void
3636
{
@@ -99,11 +99,13 @@ public function testRule(?int $version): void
9999
$this->analyse([__DIR__ . '/data/data-provider-declaration.php'], $errors);
100100
}
101101

102-
static public function provideVersion(): iterable
102+
static public function provideVersions(): iterable
103103
{
104-
yield [null];
105-
yield [9];
106-
yield [10];
104+
return [
105+
[null],
106+
[9],
107+
[10]
108+
];
107109
}
108110

109111
public function testFixDataProviderStatic(): void

0 commit comments

Comments
 (0)