Navigation Menu

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

Update to PHPUnit 8.5 #15581

Merged
merged 3 commits into from Feb 27, 2020
Merged

Update to PHPUnit 8.5 #15581

merged 3 commits into from Feb 27, 2020

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Feb 17, 2020

We are still using PHPUnit 4.8. Support for that version already ended in 2017

PHPUnit 8.5 requires at least PHP 7.2. PHPUnit 9 was already released but it requires PHP 7.3. So we can only update after removing PHP 7.2 support.

This PR is including various adjustments for all tests cause of namespace and method changes within PHPUnit:

  • @expectedException \Exception annotation is no longer supported. Instead $this->expectException(\Exception::class); needs to be used. Similar for @expectedExceptionMessage, ...
  • Some assertion methods have been deprecated, removed or replaced. Like assertContains, getMock with multiple parameters or assertInternalType
  • setUp(), tearDown(), setUpBeforeClass(), tearDownAfterClass needs to be defined with : void return type hint

submodule plugins are already done. will create PRs for those and all other plugins the coming days

@sgiehl sgiehl added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Feb 17, 2020
@sgiehl sgiehl added this to the 4.0.0 milestone Feb 17, 2020
@sgiehl sgiehl added the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Feb 17, 2020
@sgiehl sgiehl force-pushed the updatedeps branch 2 times, most recently from 1589a19 to 5179456 Compare February 23, 2020 21:47
@sgiehl sgiehl force-pushed the updatedeps branch 3 times, most recently from ada2fd8 to e0d6d61 Compare February 26, 2020 09:22
@sgiehl sgiehl removed the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Feb 26, 2020
@sgiehl sgiehl force-pushed the updatedeps branch 3 times, most recently from 8c5c04f to ed8fd83 Compare February 27, 2020 09:26
@sgiehl sgiehl merged commit 93aef48 into 4.x-dev Feb 27, 2020
@sgiehl sgiehl deleted the updatedeps branch February 27, 2020 10:08
@sgiehl sgiehl removed the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 27, 2020
@sgiehl sgiehl requested review from diosmosis and removed request for diosmosis March 4, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant