Closed yeroon closed 6 years ago
Thank you for the report, will push a fix for this later today.
Due to semantic versioning and not being able to support both php-code-coverage 5.0
and 6.0
at the same time, I have issued multiple updates:
3.3.1
- only supports php-code-coverage ^5.0,<6.0
3.4.0
- new version which requires php-code-coverge ^6.0
.Please make sure to update to version ^3.4
of this extension and let me know if there are still any problems.
Closing
@ek9 Thanks for the quick response! However, I run into the following error:
In ContainerBuilder.php line 1608:
[ErrorException]
call_user_func_array() expects parameter 1 to be a valid callback, class 'SebastianBergmann\CodeCoverage\CodeCoverage' does not have a method 'setMapTestClassNameToCoveredClassName'
Exception trace:
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at n/a:n/a
call_user_func_array() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1608
Symfony\Component\DependencyInjection\ContainerBuilder->callMethod() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1180
Symfony\Component\DependencyInjection\ContainerBuilder->createService() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:623
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1264
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1221
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1134
Symfony\Component\DependencyInjection\ContainerBuilder->createService() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:623
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1264
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1221
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1608
Symfony\Component\DependencyInjection\ContainerBuilder->callMethod() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1180
Symfony\Component\DependencyInjection\ContainerBuilder->createService() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:623
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1264
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1221
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1134
Symfony\Component\DependencyInjection\ContainerBuilder->createService() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:623
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1264
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1221
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1221
Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:1134
Symfony\Component\DependencyInjection\ContainerBuilder->createService() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:623
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at /Users/jeroen/Projects/kbhb/vendor/symfony/dependency-injection/ContainerBuilder.php:588
Symfony\Component\DependencyInjection\ContainerBuilder->get() at /Users/jeroen/Projects/kbhb/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php:161
Behat\Testwork\Cli\Application->createCommand() at /Users/jeroen/Projects/kbhb/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php:122
Behat\Testwork\Cli\Application->doRun() at /Users/jeroen/Projects/kbhb/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /Users/jeroen/Projects/kbhb/vendor/behat/behat/bin/behat:34
Using the versions:
php 7.1.8 leanphp/behat-code-coverage 3.4.0 phpunit/php-code-coverage 6.0.4 phpunit/phpunit 7.1.5
I am able to work around this problem by downgrading phpunit to 6.x.
Reopening. It seems setMapTestClassNameToCoveredClassName
function was finally dropped in v6 (it was deprecated already during v5). An oversight on my part to not remove dependency on it.
v3.4.1
is now released with this issue patched in. I did a proper test and it seems to be working correctly now on my end. Let me know otherwise.
Closing.
The package is not compatible with phpunit/php-code-coverage 6:
installed versions:
php 7.1.8 leanphp/behat-code-coverage 3.3.0 phpunit/php-code-coverage 6.0.4 phpunit/phpunit 7.1.5