Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fixers for refactorings due to phpunit 7/8 deprecations #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.0] 2019-12-03
### Changed
- Added fixers for refactorings due to phpunit 7/8 deprecations

## [1.0.2] 2019-03-11
### Changed
- Dropped `composer.lock` from repository
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
}
},
"require": {
"friendsofphp/php-cs-fixer": "^2.12"
"friendsofphp/php-cs-fixer": "^2.16"
}
}
8 changes: 6 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ public function getRules() {
'yoda_style' => [
'equal' => false,
'identical' => false
]
];
],
// phpunit automated refactorings
'php_unit_no_expectation_annotation' => true,
'php_unit_expectation' => true,
'php_unit_dedicate_assert_internal_type' => true
];
return $rules;
}
}