Skip to content

Update PHPUnit to 8.x and drop unsupported versions #108

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

Merged
merged 6 commits into from
Jan 10, 2020

Conversation

paolobueno
Copy link
Contributor

@paolobueno paolobueno commented Jan 8, 2020

Motivation

Closes #98
Closes #79

PHPUnit 4.x is pretty ancient, and on recent versions it runs into this issue with invoking a fully deprecated method.

It seems that tests in Travis have not been running in 7.x for a while as well.

Composer also does not support HHVM, so I've removed it from the matrix as well.

Changes

  • Update PHPUnit to 8
  • Refactor deprecated annotations
  • Remove 5.x PHP versions from CI matrix

Notes

I'm not sure if there's a requirement to keep support for 5.x (supported until late 2018). PHPUnit only supported 5.6 until PHPUnit 5.x, supported until early 2018.

@paolobueno paolobueno force-pushed the phpunit-8 branch 3 times, most recently from 5c3a6a1 to cad21c0 Compare January 8, 2020 10:19
@paolobueno paolobueno changed the title Update PHPUnit to 8.x Update PHPUnit to 8.x and drop unsupported versions Jan 8, 2020
"php": ">=5.4.0",
"ext-curl": "*",
"symfony/polyfill-php56": "^1.10"
"php": ">=7.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:)

BTW from #79 (comment) this could be published as a minor version bump and let composer's php version resolution to avoid having users of unsupported versions upgrade.

Choose a reason for hiding this comment

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

This should be updated in the README, it still says php >= 5.4

@paolobueno
Copy link
Contributor Author

@felipecoppola addressed comments, can you take another look when you have the chance?

@marcelcorso marcelcorso merged commit 11950ca into messagebird:master Jan 10, 2020
@paolobueno paolobueno deleted the phpunit-8 branch January 10, 2020 10:28
@webmaster777
Copy link

README.md should be updated. it still says php >= 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace ancient phpunit Discontinue support for old PHP versions
4 participants