From dfe05f77eb5bdb6f5c1944e8557abcb75f74d8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 1 Nov 2020 13:49:44 +0100 Subject: [PATCH] Fix: Rename data providers --- test/Unit/FactoryTest.php | 4 ++-- test/Unit/RuleSet/AbstractRuleSetTestCase.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Unit/FactoryTest.php b/test/Unit/FactoryTest.php index f40d31b2..1196e6db 100644 --- a/test/Unit/FactoryTest.php +++ b/test/Unit/FactoryTest.php @@ -65,7 +65,7 @@ public function targetPhpVersion(): int } /** - * @dataProvider providerTargetPhpVersion + * @dataProvider provideTargetPhpVersion */ public function testFromRuleSetCreatesConfig(int $targetPhpVersion): void { @@ -124,7 +124,7 @@ public function targetPhpVersion(): int self::assertSame($rules, $config->getRules()); } - public function providerTargetPhpVersion(): \Generator + public function provideTargetPhpVersion(): \Generator { $values = [ \PHP_VERSION_ID - 1, diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index c1bf0d17..69078c29 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -87,7 +87,7 @@ final public function testHeaderCommentFixerIsDisabledByDefault(): void } /** - * @dataProvider providerValidHeader + * @dataProvider provideValidHeader */ final public function testHeaderCommentFixerIsEnabledIfHeaderIsProvided(string $header): void { @@ -105,7 +105,7 @@ final public function testHeaderCommentFixerIsEnabledIfHeaderIsProvided(string $ self::assertSame($expected, $rules['header_comment']); } - final public function providerValidHeader(): \Generator + final public function provideValidHeader(): \Generator { $values = [ 'string-empty' => '', @@ -123,7 +123,7 @@ final public function providerValidHeader(): \Generator } /** - * @dataProvider providerRuleNames + * @dataProvider provideRuleNames * * @param string[] $ruleNames */ @@ -140,7 +140,7 @@ final public function testRulesAreSortedByName(string $source, array $ruleNames) } /** - * @dataProvider providerRuleNames + * @dataProvider provideRuleNames * * @param string[] $ruleNames */ @@ -156,7 +156,7 @@ final public function testRulesDoNotContainRuleSets(string $source, array $ruleN )); } - final public function providerRuleNames(): \Generator + final public function provideRuleNames(): \Generator { $values = [ 'rule set' => self::createRuleSet()->rules(),