Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
TestCase suffix for abstract testsTestCase suffix for abstract tests in/Tests/...Symfony/Bridge/Doctrine/Tests/Form/EventListener/MergeDoctrineCollectionListenerTestCase.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
OskarStark commentedFeb 4, 2023
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; |
There was a problem hiding this comment.
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 commentedFeb 4, 2023
Search the codebase with |
derrabus commentedFeb 4, 2023
Since we're changing the names of a lot of classes anyway, shall we make the naming a bit more consitent? We have I think, |
nicolas-grekas commentedFeb 4, 2023
What about doing this on 6.3. We can continue using phpunit 9 for the time being on 5.4. |
OskarStark commentedFeb 4, 2023
@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 commentedFeb 4, 2023
I don't have a strong opinion, but I think we shouldn't do it on 5.4. |
OskarStark commentedFeb 4, 2023
Let's go with 6.3 then 👍🏻🤓 |
wouterj commentedFeb 4, 2023
Agreed, this is a feature according to ourpolicies:
|
OskarStark commentedFeb 4, 2023
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 commentedFeb 5, 2023
Replacessymfony#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
OskarStark commentedFeb 6, 2023
Replacessymfony#49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
derrabus commentedFeb 7, 2023
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. |
… `/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/`
… `/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/`
Uh oh!
There was an error while loading.Please reload this page.
Using
Testsuffix is deprecated since PHPUnit 10Spotted in
cc@derrabus