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

OrderedClassElementsFixer - PHPUnit assert(Pre|Post)Conditions methods support #6119

Merged

Conversation

meyerbaptiste
Copy link
Contributor

@meyerbaptiste meyerbaptiste commented Nov 18, 2021

Add support for PHPUnit TestCase::assertPreConditions() and TestCase::assertPostConditions() methods.

TestCase::assertPreConditions() is called between TestCase::setUp() and test.
TestCase::assertPostConditions() is called between test and TestCase::tearDown().

@meyerbaptiste meyerbaptiste changed the title OrderedClassElementsFixer - PHPUnit assert(Pre|Post)Condition methods support OrderedClassElementsFixer - PHPUnit assert(Pre|Post)Conditions methods support Nov 18, 2021
@SpacePossum
Copy link
Contributor

👍
RTM from me if the tests pass

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 92.853% when pulling 153e50c on meyerbaptiste:fix_orderedclasselementsfixer into 07430f5 on FriendsOfPHP:master.

@SpacePossum SpacePossum added the RTM Ready To Merge label Nov 19, 2021
@SpacePossum
Copy link
Contributor

Thank you @meyerbaptiste.

@SpacePossum SpacePossum merged commit 1d3c6a2 into PHP-CS-Fixer:master Nov 26, 2021
@SpacePossum SpacePossum removed the RTM Ready To Merge label Nov 26, 2021
@meyerbaptiste meyerbaptiste deleted the fix_orderedclasselementsfixer branch November 26, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants