Skip to content

Commit

Permalink
Merge pull request #1179 from ergebnis/feature/php-unit-data-provider…
Browse files Browse the repository at this point in the history
…-method-order

Enhancement: Enable and configure `php_unit_data_provider_method_order` fixer
  • Loading branch information
localheinz authored Feb 23, 2025
2 parents 922ca1d + 400b994 commit 475bbcc
Show file tree
Hide file tree
Showing 29 changed files with 86 additions and 28 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For a full diff see [`6.43.1...main`][6.43.1...main].

- Updated `friendsofphp/php-cs-fixer` ([#1177]), by [@dependabot]
- Added `constant` to `elements` option of `type_declaration_spaces` fixer ([#1178]), by [@localheinz]
- Enabled and configured `php_unit_data_provider_method_order` fixer ([#1179]), by [@localheinz]

## [`6.43.1`][6.43.1]

Expand Down Expand Up @@ -1884,6 +1885,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#1173]: https://github.com/ergebnis/php-cs-fixer-config/pull/1173
[#1177]: https://github.com/ergebnis/php-cs-fixer-config/pull/1177
[#1178]: https://github.com/ergebnis/php-cs-fixer-config/pull/1178
[#1179]: https://github.com/ergebnis/php-cs-fixer-config/pull/1179

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php53.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php54.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php55.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php56.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php70.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php84.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ public static function create(): RuleSet
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php53Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php54Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php55Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php56Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php70Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => false,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php84Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ protected function expectedRules(): Rules
'assertSame',
],
],
'php_unit_data_provider_method_order' => false,
'php_unit_data_provider_method_order' => [
'placement' => 'after',
],
'php_unit_data_provider_name' => false,
'php_unit_data_provider_return_type' => true,
'php_unit_data_provider_static' => [
Expand Down

0 comments on commit 475bbcc

Please sign in to comment.