Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "SebastianBergmann\CodeCoverage\Filter" is not found during PHPT tests when PHPUnit is used from PHAR #4871

Closed
SharkMachine opened this issue Jan 23, 2022 · 0 comments
Assignees
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/phpt End-to-end tests in PHPT format installation/phar type/bug Something is broken

Comments

@SharkMachine
Copy link

Q A
PHPUnit version 9.5.12
PHP version 7.4, 8.0, 8.1
Installation Method PHAR

Summary

Getting the following error with code coverage:

Fatal error: Uncaught Error: Class "SebastianBergmann\CodeCoverage\Filter" not found in Standard input code:29

How to reproduce

https://github.com/SharkMachine/xmlseclibs/runs/4911038329?check_suite_focus=true

Expected behavior

No error and code coverage generated

@SharkMachine SharkMachine added the type/bug Something is broken label Jan 23, 2022
@sebastianbergmann sebastianbergmann changed the title Coverage error when using PHAR Class "SebastianBergmann\CodeCoverage\Filter" is not found during PHPT tests when PHPUnit is used from PHAR Jan 23, 2022
@sebastianbergmann sebastianbergmann self-assigned this Jan 23, 2022
@sebastianbergmann sebastianbergmann added feature/code-coverage Issues related to code coverage (but not php-code-coverage) installation/phar feature/phpt End-to-end tests in PHPT format labels Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/phpt End-to-end tests in PHPT format installation/phar type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants