Funding Request: Upgrade to PHPUnit 11 in Flow & Neos

Hi,

we currently require "phpunit/phpunit": "~9.1" in Flow and "phpunit/phpunit": "^9.6", in Neos, resulting in version 9.6.x being used in both cases. While PHPUnit always promotes a relaxed approach to updates (“No, you do not need to update to the latest version all the time”), this is a problem by now, since:

  • PHPUnit 9.6 had it’s EOL on February 1, 2019
  • any PHPUnit below 11 is by now out of bugfixes

Even though any version above PHPUnit 7 is still not EOL, we run the risk of running into deprecations and errors with newer PHP versions.

What is the plan?

  • Make our unit & functional tests work with PHPUnit 11
  • Cover everything in the development distributions of Flow and Neos
  • Work based on Flow & Neos 8.4 (the “later” LTS versions), upmerge to main in the end
  • Provide documentation for Flow & Neos users with hints on adjusting their own tests

Q: Why PHPUnit 11 and Flow/Neos 8.4?
A: Because that is the only combination where the minimum PHP version matches.

Who will work on this?

What do we need?

I’d like to apply for a funding of 4.000 €.

Q: Why that amount?
A: Based on my (@kdambekalns) gut feeling, after having done some PHPUnit updates that were similar.


I agree to the funding request
  • Yes
  • No
0 voters
2 Likes

Just wondering: (why) is PHPUnit 12 out of reach?

Because:

PHPUnit 12 requires a newer PHP version than we do.

Ah, sorry, missed that

Thanks for your votes, I closed the poll. :heart_hands:

2 Likes