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

[Tests] Remove occurrences of withConsecutive() #49621

Merged
merged 1 commit into from Mar 10, 2023

Conversation

alexandre-daubois
Copy link
Contributor

@alexandre-daubois alexandre-daubois commented Mar 6, 2023

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

withConsecutive() has been deprecated in PHPUnit 9.6 and removed in PHP 10 (sebastianbergmann/phpunit#4564). This PR aims at starting the work to remove these occurrences. There is unfortunately no given migration path, and this requires manual work.

I'll create a meta issue referencing remaining occurrences if this one's merged, to keep track. Some seems pretty hard to remove.

cc @OskarStark this might interest you, as we worked a lot on tests lately 😄

@alexandre-daubois alexandre-daubois force-pushed the with-consecutive branch 2 times, most recently from 88faccd to 0c2a960 Compare March 6, 2023 20:26
@alexandre-daubois alexandre-daubois force-pushed the with-consecutive branch 7 times, most recently from 20b2aad to dec056f Compare March 7, 2023 21:41
@alexandre-daubois
Copy link
Contributor Author

ℹ️ Initializing some properties outside the series like in ArrayDenormalizerTest.php is required by older PHP versions and can't be done in the series declaration directly.

@alexandre-daubois alexandre-daubois force-pushed the with-consecutive branch 4 times, most recently from f073856 to 0487116 Compare March 8, 2023 07:59
@alexandre-daubois alexandre-daubois force-pushed the with-consecutive branch 5 times, most recently from 54e9ccf to b669243 Compare March 9, 2023 19:04
@alexandre-daubois alexandre-daubois force-pushed the with-consecutive branch 4 times, most recently from defe8e2 to 834ac75 Compare March 9, 2023 20:12
@nicolas-grekas nicolas-grekas force-pushed the with-consecutive branch 3 times, most recently from 2ef12d5 to bf2fcfa Compare March 10, 2023 09:46
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit 431b6ef into symfony:5.4 Mar 10, 2023
8 of 11 checks passed
nicolas-grekas added a commit that referenced this pull request Mar 10, 2023
…xandre-daubois)

This PR was merged into the 6.2 branch.

Discussion
----------

[Tests] Remove `withConsecutive()` calls from tests

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | _NA_
| License       | MIT
| Doc PR        | _NA_

Follows-up #49621

ℹ️ No more `setMethods()` deprecated calls have been found in 6.2.

Commits
-------

6b27e78 [Tests] Remove `withConsecutive()` calls from tests
@alexandre-daubois alexandre-daubois deleted the with-consecutive branch March 10, 2023 16:59
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

6 participants