You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to find the line coverage of PHPUnit itself.
I am able to run phpunit on the project:
.../phpunit$ ./phpunit
PHPUnit 9.3-g709545de9 by Sebastian Bergmann and contributors.
Runtime: PHP 7.4.11 with Xdebug 2.9.8
Configuration: .../phpunit/phpunit.xml
............................................................. 61 / 2782 ( 2%)
However, I am unable to run phpunit with --coverage-text:
./phpunit --coverage-text
PHPUnit 9.3-g709545de9 by Sebastian Bergmann and contributors.
Runtime: PHP 7.4.11 with Xdebug 2.9.8
Configuration: .../phpunit/phpunit.xml
PHP Fatal error: Uncaught Error: Call to undefined method SebastianBergmann\CodeCoverage\CodeCoverage::createWithFilter() in .../phpunit/src/TextUI/TestRunner.php:527
Stack trace:
#0 .../phpunit/src/TextUI/Command.php(108): PHPUnit\TextUI\TestRunner->run()
#1 .../phpunit/src/TextUI/Command.php(68): PHPUnit\TextUI\Command->run()
#2 .../phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#3 {main}
thrown in .../phpunit/src/TextUI/TestRunner.php on line 527
I've tried checking out and composer installing different commits.
Setup using PhpStorm fails as well, it cannot create a phar out of the phpunit file in the root as specified by the README in the tests dir.
I'm running this on Windows Subsystem for Linux, Ubuntu 20.04.1 LTS.
I'm not having this issue with other PHP projects on the same system.
Any tips appreciated!
The text was updated successfully, but these errors were encountered:
I am trying to find the line coverage of PHPUnit itself.
I am able to run phpunit on the project:
However, I am unable to run phpunit with --coverage-text:
I've tried checking out and composer installing different commits.
Setup using PhpStorm fails as well, it cannot create a phar out of the phpunit file in the root as specified by the README in the tests dir.
I'm running this on Windows Subsystem for Linux, Ubuntu 20.04.1 LTS.
I'm not having this issue with other PHP projects on the same system.
Any tips appreciated!
The text was updated successfully, but these errors were encountered: