kenjis / monkey-patch

Standalone package of ci-phpunit-test's Monkey Patching.
MIT License
5 stars 2 forks source link

phpunit 11 compatibility #6

Open bdurkovic opened 3 months ago

bdurkovic commented 3 months ago

Right now de package requires phpunit ^9.5.

Would it be possible to bump the version to 11 in composer? Or is that not possible due to the usage of the now removed features of phpunit?

kenjis commented 3 months ago

Can you try #7 ?

bdurkovic commented 3 months ago

Thanks for your reaction! We are now a step further:

  Problem 1
    - Root composer.json requires kenjis/monkey-patch dev-move-phpunit-dev -> satisfiable by kenjis/monkey-patch[dev-move-phpunit-dev].
    - phpunit/phpunit[11.0.0, ..., 11.2.5] require phpunit/php-code-coverage ^11.0 -> satisfiable by phpunit/php-code-coverage[11.0.0, 11.0.1, 11.0.2, 11.0.3].
    - phpunit/php-code-coverage[11.0.0, ..., 11.0.3] require nikic/php-parser ^5.0 -> satisfiable by nikic/php-parser[v5.0.0, v5.0.1, v5.0.2].
    - Conclusion: don't install nikic/php-parser v5.0.2 (conflict analysis result)
    - Root composer.json requires phpunit/phpunit ^11 -> satisfiable by phpunit/phpunit[11.0.0, ..., 11.2.5].

So it seems the version nikic/php-parser needs to be bumped to 5.