From 846a6948ba8a65e8391967f5c87417da2166670d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 28 Feb 2020 16:45:38 +0100 Subject: [PATCH] Enhancement: Configure php_unit_dedicate_assert fixer to target newest versions --- CHANGELOG.md | 15 +++++++++++++-- src/RuleSet/Php71.php | 4 +++- src/RuleSet/Php73.php | 4 +++- test/Unit/RuleSet/Php71Test.php | 4 +++- test/Unit/RuleSet/Php73Test.php | 4 +++- 5 files changed, 25 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c87254..92058749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`2.0.0...master`][2.0.0...master]. +For a full diff see [`2.1.0...master`][2.1.0...master]. + +## [`2.1.0`][2.1.0] + +For a full diff see [`2.0.0...2.1.0`][2.0.0...2.1.0]. + +### Changed + +* Configured `php_unit_dedicate_assert` fixer to target `newest` versions of `phpunit/phpunit` ([#73]), by [@localheinz] ## [`2.0.0`][2.0.0] @@ -58,6 +66,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [1.1.2]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/1.1.2 [1.1.3]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/1.1.3 [2.0.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.0.0 +[2.1.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.1.0 [d899e77...1.0.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/d899e77...1.0.0 [1.0.0...1.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.0.0...1.1.0 @@ -65,13 +74,15 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [1.1.1...1.1.2]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.1.1...1.1.2 [1.1.2...1.1.3]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.1.2...1.1.3 [1.1.3...2.0.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.1.3...2.0.0 -[2.0.0...master]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.0.0...master +[2.0.0...2.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.0.0...2.1.0 +[2.1.0...master]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.1.0...master [#3]: https://github.com/ergebnis/php-cs-fixer-config/pull/3 [#14]: https://github.com/ergebnis/php-cs-fixer-config/pull/14 [#17]: https://github.com/ergebnis/php-cs-fixer-config/pull/17 [#23]: https://github.com/ergebnis/php-cs-fixer-config/pull/23 [#50]: https://github.com/ergebnis/php-cs-fixer-config/pull/50 +[#73]: https://github.com/ergebnis/php-cs-fixer-config/pull/73 [@linuxjuggler]: https://github.com/linuxjuggler [@localheinz]: https://github.com/localheinz diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index e5f227c2..8379a0fd 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -215,7 +215,9 @@ final class Php71 extends AbstractRuleSet 'ordered_imports' => true, 'ordered_interfaces' => true, 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, + 'php_unit_dedicate_assert' => [ + 'target' => 'newest', + ], 'php_unit_dedicate_assert_internal_type' => true, 'php_unit_expectation' => [ 'target' => 'newest', diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 1181dbac..864df2b4 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -215,7 +215,9 @@ final class Php73 extends AbstractRuleSet 'ordered_imports' => true, 'ordered_interfaces' => true, 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, + 'php_unit_dedicate_assert' => [ + 'target' => 'newest', + ], 'php_unit_dedicate_assert_internal_type' => true, 'php_unit_expectation' => [ 'target' => 'newest', diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 5763c134..fea412f2 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -221,7 +221,9 @@ final class Php71Test extends AbstractRuleSetTestCase 'ordered_imports' => true, 'ordered_interfaces' => true, 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, + 'php_unit_dedicate_assert' => [ + 'target' => 'newest', + ], 'php_unit_dedicate_assert_internal_type' => true, 'php_unit_expectation' => [ 'target' => 'newest', diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 0dfdaf49..03678846 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -221,7 +221,9 @@ final class Php73Test extends AbstractRuleSetTestCase 'ordered_imports' => true, 'ordered_interfaces' => true, 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, + 'php_unit_dedicate_assert' => [ + 'target' => 'newest', + ], 'php_unit_dedicate_assert_internal_type' => true, 'php_unit_expectation' => [ 'target' => 'newest',