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

Not all source files of sebastian/cli-parser packaged in PHAR #102

Closed
gwenaelCruz opened this issue Sep 10, 2020 · 0 comments
Closed

Not all source files of sebastian/cli-parser packaged in PHAR #102

gwenaelCruz opened this issue Sep 10, 2020 · 0 comments
Assignees
Labels

Comments

@gwenaelCruz
Copy link

Q A
PHPunit version 8.3.5
Phpcov version 8.1.0
Php version 7.4.5
Installation method PHAR
Summary

When merging HTML coverage, an error occurs, and a message telling a class is not found.

Current behavior
PHP Fatal error:  Uncaught Error: Class 'SebastianBergmann\CliParser\RequiredOptionArgumentMissingException' not found in phar:///opt/phpcov.phar/sebastian/cli-parser/src/Parser.php:172
Stack trace:
#0 phar:///opt/phpcov.phar/sebastian/cli-parser/src/Parser.php(81): SebastianBergmann\CliParser\Parser->parseLongOption('html', Array, Array, Array)
#1 phar:///opt/phpcov.phar/src/cli/ArgumentsBuilder.php(82): SebastianBergmann\CliParser\Parser->parse(Array, 'hv', Array)
#2 phar:///opt/phpcov.phar/src/cli/Application.php(25): SebastianBergmann\PHPCOV\ArgumentsBuilder->build(Array)
#3 /opt/phpcov.phar(765): SebastianBergmann\PHPCOV\Application->run(Array)
#4 {main}
    thrown in phar:///opt/phpcov.phar/sebastian/cli-parser/src/Parser.php on line 172
How to reproduce
php /opt/phpcov.phar merge /path/to/coverage/ --html > "/path/to/coverage/html"
Expected behavior

HTML coverage report generated

Notes

It crashes with both HTML and text report although it works perfectly with phpcov-8.0.0.

@sebastianbergmann sebastianbergmann self-assigned this Sep 10, 2020
@sebastianbergmann sebastianbergmann changed the title Class 'SebastianBergmann\CliParser\RequiredOptionArgumentMissingException' not found Not all source files of sebastian/cli-parser packaged in PHAR Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants