friends-of-phpspec / phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests
https://packagist.org/packages/friends-of-phpspec/phpspec-code-coverage
Other
20 stars 12 forks source link

Compatibility with PHPUnit 11 #61

Closed shulard closed 3 months ago

shulard commented 3 months ago

This library depend on phpunit/php-code-coverage, this PR allow compatibility with v11 of that library.

It also requires a new dependency (which was already included before trough the phpunit/php-code-coverage). I think it’s mandatory because we are using something from this lib.

shulard commented 3 months ago

Hello @jaylinski !

This PR is to handle the PHPunit 11 update.

I added an exception to handle the deprecation for the blacklist options.

Let me know if it’s fine for you ^^

If we merge this one, we must tag a new minor release then we can create a new major after removing the blacklist options.

shulard commented 3 months ago

It looks like I find a way to deal with the blacklist options. The FileIterator library provide the ability to exclude some file and folders so I refactored the code to use this.

We can think about dropping this option but it must be fine for now to keep it ^^