Skip to content

Commit

Permalink
Merge pull request #301 from ergebnis/feature/php-unit-test-case-stat…
Browse files Browse the repository at this point in the history
…ic-method-calls

Enhancement: Enable and configure php_unit_test_case_static_method_calls fixer
  • Loading branch information
ergebnis-bot authored Dec 19, 2020
2 parents 40490fc + 4f475e0 commit 53f6735
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`2.8.0...main`][2.8.0...main].

### Changed

* Enabled and configured `php_unit_test_case_static_method_calls` fixer for `Ergebnis\PhpCsFixer\Config\RuleSet\PhpUnit` ([#301]), by [@localheinz]
*
## [`2.8.0`][2.8.0]

For a full diff see [`2.7.0...2.8.0`][2.7.0...2.8.0].
Expand Down Expand Up @@ -268,6 +272,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#290]: https://github.com/ergebnis/php-cs-fixer-config/pull/290
[#291]: https://github.com/ergebnis/php-cs-fixer-config/pull/291
[#300]: https://github.com/ergebnis/php-cs-fixer-config/pull/300
[#301]: https://github.com/ergebnis/php-cs-fixer-config/pull/301

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/PhpUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ final class PhpUnit extends AbstractRuleSet
'php_unit_size_class' => false,
'php_unit_strict' => false,
'php_unit_test_annotation' => false,
'php_unit_test_case_static_method_calls' => false,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'php_unit_test_class_requires_covers' => false,
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_align' => true,
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/PhpUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ final class PhpUnitTest extends AbstractRuleSetTestCase
'php_unit_size_class' => false,
'php_unit_strict' => false,
'php_unit_test_annotation' => false,
'php_unit_test_case_static_method_calls' => false,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'php_unit_test_class_requires_covers' => false,
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_align' => true,
Expand Down

0 comments on commit 53f6735

Please sign in to comment.