Skip to content

Upgrade PHPUnit to 8.5 (php 7.2) and 9.3 (php >= 7.3) #38103

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

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 7, 2020

Q A
Branch? 3.4
Bug fix? yes/no
New feature? no
Deprecations? no
Tickets #37564
License MIT
Doc PR N/A

Our test suite on the 3.4 branch should be compatible with more recent versions of PHPUnit now. In order to make sure that it stays that way, I'm proposing to bump PHPUnit to 8.5 for the php 7.2 job and 9.3 for the php 7.3 and 7.4 jobs.

@derrabus
Copy link
Member Author

derrabus commented Sep 7, 2020

Regarding the CI failure: The PhpDoc-Parser of PHPUnit 9.3 breaks when being called on a internal class. I'll look into this. Either we work around this problem in PhpUnitBridge or I submit a fix to PHPUnit.

@derrabus derrabus marked this pull request as draft September 7, 2020 22:07
@sanmai
Copy link
Contributor

sanmai commented Sep 8, 2020

#38094 might be related.

@derrabus
Copy link
Member Author

derrabus commented Sep 8, 2020

PHPUnit won't ship a fix (see sebastianbergmann/phpunit#4448), so I'm going for the workaround now.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Sep 8, 2020
@derrabus derrabus force-pushed the improvement/phpunit-8.5-9.3 branch 3 times, most recently from 8ac37db to 9af37ec Compare September 11, 2020 21:22
fabpot added a commit that referenced this pull request Sep 13, 2020
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

[PhpUnitBridge] Internal classes are not legacy

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

This change works around the issue that we can observe in the failed Travis build of #38103.

We must not call PHPUnit's internal `Test::getGroups()` method with a built-in class, otherwise we will run into a TypeError. This won't be fixed on PHPUnit's side, so we need to prevent that call. Our DeprecationErrorHander might run into this case if a deprecation is triggered while autoloading a class.

And forgive me, I've had a really hard time trying to craft a test case for that. 🙈

Commits
-------

7d55e0c Internal classes are not legacy.
@derrabus derrabus force-pushed the improvement/phpunit-8.5-9.3 branch from 9af37ec to ff47516 Compare September 14, 2020 06:11
@derrabus derrabus marked this pull request as ready for review September 14, 2020 07:09
@derrabus
Copy link
Member Author

We're green! 🎉

@fabpot
Copy link
Member

fabpot commented Sep 14, 2020

Thank you @derrabus.

@fabpot fabpot merged commit ed3ab52 into symfony:3.4 Sep 14, 2020
@derrabus derrabus deleted the improvement/phpunit-8.5-9.3 branch September 14, 2020 07:45
fabpot added a commit that referenced this pull request Sep 17, 2020
…errabus)

This PR was merged into the 4.4 branch.

Discussion
----------

Upgrade PHPUnit to 8.5 (php 7.2) and 9.3 (php >= 7.3)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #37564
| License       | MIT
| Doc PR        | N/A

This is #38103 on the 4.4 branch.

Commits
-------

73647e5 Upgrade PHPUnit to 8.5 (php 7.2) and 9.3 (php >= 7.3).
fabpot added a commit that referenced this pull request Sep 29, 2020
… Clouet)

This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Validator] Add Ulid constraint and validator

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #38152
| License       | MIT

ULID constraint and validator as mentioned in ticket #38103
I checked for it ulid specifications https://github.com/ulid/spec

Commits
-------

e36fd55 [Validator] Add Ulid constraint and validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants