Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PhpUnitBridge] Broken with PHPUnit 9.5 #39329

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

Closed
sanmai opened this issue Dec 5, 2020 · 1 comment
Closed

[PhpUnitBridge] Broken with PHPUnit 9.5 #39329

sanmai opened this issue Dec 5, 2020 · 1 comment

Comments

@sanmai
Copy link
Contributor

sanmai commented Dec 5, 2020

Symfony version(s) affected: v5.2.0

Description

PhpUnitBridge's CoverageListenerTrait is incompatible with PHPUnit 9.5, probably due to missing/inaccessible getAnnotations() method.

How to reproduce

Example of a build with the error:

 PHPUnit 9.5.0 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.13
Configuration: /home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/phpunit.xml.dist
Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing 
Call to undefined method PhpCsFixer\Tests\AbstractFixerTest::getAnnotations()
Error: Process completed with exit code 2.

And another.

Workaround

Use PHPUnit 9.4.

@derrabus
Copy link
Member

derrabus commented Dec 5, 2020

I'll look into it. In the meantime, you can use PHPUnit 9.4. It should work fine. 🀞🏻

fabpot added a commit that referenced this issue Dec 5, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fixed PHPunit 9.5 compatibility

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39329
| License       | MIT
| Doc PR        | -

Let's see if this works πŸ€

#SymfonyHackday

Commits
-------

5134de5 Added compatibility with PHPunit 9.5
@fabpot fabpot closed this as completed Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants