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

Stop using deprecated assertAttribute* methods of PHPUnit #780

Merged

Conversation

ste93cry
Copy link
Collaborator

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

PHPUnit is going to deprecate and drop the assertAttribute* methods in sebastianbergmann/phpunit#3338 and we use them in a few tests. This PR aims at refactoring such tests in some other way so that we are ready for a future upgrade of version of our test framework

Copy link
Collaborator

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job! Apart from a small nitpick, LGTM! 👍

tests/ClientBuilderTest.php Outdated Show resolved Hide resolved
Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to the PR, but can you change .travis.yml and remove branches config an see if travis runs then?

@Jean85
Copy link
Collaborator

Jean85 commented Feb 25, 2019

If we need to fix the Travis builds triggers, we need to look at https://docs.travis-ci.com/user/pull-requests#double-builds-on-pull-requests

@ste93cry
Copy link
Collaborator Author

ste93cry commented Mar 6, 2019

I believe that the problem with Travis CI is that it's not running for draft PRs (new feature of GitHub), while AppVeyor does (for some reason, maybe different webhooks used)

@stayallive
Copy link
Collaborator

This makes sense 👍 mark it as reviewable @ste93cry? Or is it not done yet?

@ste93cry
Copy link
Collaborator Author

ste93cry commented Mar 7, 2019

It is not finished yet, there are some points to think about how not to use the deprecated PHPUnit methods but keep testing those cases. Since this does not block any release, I will leave it in draft until I find a way to complete it

@ste93cry ste93cry removed this from the 2.1 milestone May 21, 2019
@ste93cry ste93cry force-pushed the fix-phpunit-deprecated-methods-usage branch from a866a80 to e0ec205 Compare April 5, 2020 23:08
@ste93cry ste93cry changed the base branch from master to develop April 5, 2020 23:08
tests/phpt/spool_drain.phpt Show resolved Hide resolved
tests/ClientBuilderTest.php Outdated Show resolved Hide resolved
@ste93cry ste93cry marked this pull request as ready for review April 6, 2020 21:28
@ste93cry ste93cry force-pushed the fix-phpunit-deprecated-methods-usage branch from e26e70c to 63c36e1 Compare April 6, 2020 21:29
@ste93cry ste93cry requested a review from Jean85 April 6, 2020 21:36
@ste93cry ste93cry added this to the 2.4 milestone Apr 6, 2020
@ste93cry ste93cry force-pushed the fix-phpunit-deprecated-methods-usage branch from 63c36e1 to 1f2f430 Compare April 6, 2020 21:43
@ste93cry ste93cry force-pushed the fix-phpunit-deprecated-methods-usage branch 2 times, most recently from 466f364 to f17864e Compare April 7, 2020 08:32
@ste93cry ste93cry force-pushed the fix-phpunit-deprecated-methods-usage branch from f17864e to 4bb6214 Compare April 7, 2020 09:00
@ste93cry ste93cry merged commit cc510f0 into getsentry:develop Apr 7, 2020
@ste93cry ste93cry deleted the fix-phpunit-deprecated-methods-usage branch April 7, 2020 10:13
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