Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PHPUnit 10] UseTestCase suffix for abstract tests in/Tests/#49234

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
OskarStark wants to merge1 commit intosymfony:5.4fromOskarStark:suffix-testcase

Conversation

@OskarStark
Copy link
Contributor

@OskarStarkOskarStark commentedFeb 4, 2023
edited
Loading

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
TicketsRefs#49233
LicenseMIT
Doc PR-

UsingTest suffix is deprecated since PHPUnit 10

Spotted in

cc@derrabus

@carsonbotcarsonbot added this to the5.4 milestoneFeb 4, 2023
@OskarStarkOskarStark changed the title[PHPUnit 10] UseTestCase suffix for abstract tests[PHPUnit 10] UseTestCase suffix for abstract tests in/Tests/Feb 4, 2023
@OskarStark
Copy link
ContributorAuthor

Should be good now@xabbuh

Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
<?php

useSymfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
useSymfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

the class name is used in the XML and YAML fixtures too

@xabbuh
Copy link
Member

Search the codebase withabstract class .+Test extends I also find some more classes that probably need to be updated as well.

@derrabus
Copy link
Member

Since we're changing the names of a lot of classes anyway, shall we make the naming a bit more consitent? We haveAbstractSomethingTestCase,BaseSomethingTestCase,SomethingTestCase, …

I think,SomethingTestCase is the pattern that we use for our reusable test case classes already (WebTestCase,KernelTestCase, …). Would it make sense to use that pattern everywhere?

@nicolas-grekas
Copy link
Member

What about doing this on 6.3. We can continue using phpunit 9 for the time being on 5.4.

@OskarStark
Copy link
ContributorAuthor

@xabbuh but aren't these classes in /Test/ which follows BC?

@derrabus open for the renaming of others agree

@nicolas-grekas we are doing the other PHPUnit stuff against 5.4, but how you like

@fabpot
Copy link
Member

I don't have a strong opinion, but I think we shouldn't do it on 5.4.

@OskarStark
Copy link
ContributorAuthor

Let's go with 6.3 then 👍🏻🤓

@wouterj
Copy link
Member

Agreed, this is a feature according to ourpolicies:

The following changes are never accepted in a patch version:

  • ...
  • Support for newer major versions of Composer dependencies

@wouterjwouterj modified the milestones:5.4,6.3Feb 4, 2023
@OskarStark
Copy link
ContributorAuthor

Per se it's just a renaming of an internal class, so the policy does not match here from my POV.

The one why I thought it makes sense to use 5.4 is to avoid merge conflicts.

But as I said, ok let's go with 6.3

But what about the static data providers and the open PR from@xabbuh ?

@OskarStark
Copy link
ContributorAuthor

OskarStark added a commit to OskarStark/symfony that referenced this pull requestFeb 6, 2023
Replacessymfony#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
@OskarStark
Copy link
ContributorAuthor

@OskarStarkOskarStark deleted the suffix-testcase branchFebruary 6, 2023 05:25
OskarStark added a commit to OskarStark/symfony that referenced this pull requestFeb 7, 2023
Replacessymfony#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
@derrabus
Copy link
Member

What about doing this on 6.3. We can continue using phpunit 9 for the time being on 5.4.

Late to the party here. 🙈

We can go for 6.3 for this change, but that means we need to silence the deprecation regarding those classes on 5.4. We should run the tests on the 5.4 branch with PHPUnit 9.6 because 9.5 likely won't receive fixes for PHP 8.3/8.4.

nicolas-grekas added a commit that referenced this pull requestFeb 7, 2023
… `/Tests/` (OskarStark)This PR was merged into the 6.3 branch.Discussion----------[PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | Refs#49233| License       | MIT| Doc PR        | n/aReplaces#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*#49233Commits-------cb3db96 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
nicolas-grekas added a commit that referenced this pull requestFeb 7, 2023
… `/Tests/` (OskarStark)This PR was merged into the 6.3 branch.Discussion----------[PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | Refs#49233| License       | MIT| Doc PR        | n/aReplaces#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*#49233Commits-------cb3db96 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
@nicolas-grekas
Copy link
Member

@derrabus makes sense. I've cherry-picked#49253 on 5.4 inaec2271

derrabus reacted with thumbs up emoji

@xabbuh
Copy link
Member

@OskarStark see#49419

OskarStark reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

7 participants

@OskarStark@xabbuh@derrabus@nicolas-grekas@fabpot@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp