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

[PhpUnitBridge] Remove use of ForwardCompatTrait #32889

Merged
merged 1 commit into from Aug 3, 2019

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 2, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32844
License MIT
Doc PR NA

With #32882 the ForwardCompatibilityTrait is injected in TestCase which now act as a true polyfill

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Aug 2, 2019
@jderusse jderusse force-pushed the clean-forwardcompat branch 3 times, most recently from f97abb5 to 2d87331 Compare August 3, 2019 07:34
@jderusse jderusse changed the title [PhpUnitBridge] Remove use of ForwardCompatTrait WIP [PhpUnitBridge] Remove use of ForwardCompatTrait Aug 3, 2019
@jderusse jderusse force-pushed the clean-forwardcompat branch 7 times, most recently from 17680e7 to 5154708 Compare August 3, 2019 17:10
@jderusse jderusse changed the title WIP [PhpUnitBridge] Remove use of ForwardCompatTrait [PhpUnitBridge] Remove use of ForwardCompatTrait Aug 3, 2019
@jderusse jderusse force-pushed the clean-forwardcompat branch 4 times, most recently from f5d60c0 to feda555 Compare August 3, 2019 20:24
nicolas-grekas added a commit that referenced this pull request Aug 3, 2019
…jderusse)

This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Inject ForwardCompatibiliy in TestCase

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | not yet
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

This PR replace the previous trait `ForwardCompatTestTrait` by injecting forward compatibility code in phpunit itself which allow to use the polyfill methods in tests without changing the code.

when using `simple_phpunit` the env variable  `$PHPUNIT_REMOVE_RETURN_TYPEHINT=1` (default 0) removes the `: void` typehint in public and protected methods (allow to use 7.4 8 in 3.4 branch)

note: once merged, all tests have to be fixed. see #32889

Commits
-------

016bd8d Inject ForwardCompatibiliy in TestCase
@jderusse jderusse force-pushed the clean-forwardcompat branch 2 times, most recently from 432c4de to ad2225f Compare August 3, 2019 21:11
@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit ac6242f into symfony:3.4 Aug 3, 2019
nicolas-grekas added a commit that referenced this pull request Aug 3, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Remove use of ForwardCompatTrait

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

With #32882 the ForwardCompatibilityTrait is injected in TestCase which now act as a true polyfill

Commits
-------

ac6242f Remove use of ForwardCompatTrait
@jderusse jderusse deleted the clean-forwardcompat branch August 8, 2019 11:35
hultberg pushed a commit to hultberg/symfony that referenced this pull request Sep 17, 2021
…(jderusse)

This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Remove use of ForwardCompatTrait

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony#32844
| License       | MIT
| Doc PR        | NA

With symfony#32882 the ForwardCompatibilityTrait is injected in TestCase which now act as a true polyfill

Commits
-------

ac6242f Remove use of ForwardCompatTrait
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.

None yet

3 participants