@sgiehl opened this Pull Request on February 17th 2020 Member

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:

  • <a class='mention' href='https://github.com/expectedException'>@expectedException</a> \Exception annotation is no longer supported. Instead $this->expectException(\Exception::class); needs to be used. Similar for <a class='mention' href='https://github.com/expectedExceptionMessage'>@expectedExceptionMessage</a>, ...
  • 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

This Pull Request was closed on February 27th 2020
Powered by GitHub Issue Mirror