-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PHPUnit 10] Use TestCase
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TestCase
suffix for abstract testsTestCase
suffix for abstract tests in /Tests/
...Symfony/Bridge/Doctrine/Tests/Form/EventListener/MergeDoctrineCollectionListenerTestCase.php
Outdated
Show resolved
Hide resolved
Should be good now @xabbuh |
Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * symfony#49233
f618992
to
a64666c
Compare
@@ -1,13 +1,13 @@ | |||
<?php | |||
|
|||
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest; | |||
use Symfony\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
Search the codebase with |
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, |
What about doing this on 6.3. We can continue using phpunit 9 for the time being on 5.4. |
@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 |
I don't have a strong opinion, but I think we shouldn't do it on 5.4. |
Let's go with 6.3 then 👍🏻🤓 |
Agreed, this is a feature according to our policies:
|
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 ? |
Replaces symfony#49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * symfony#49233
Replaces symfony#49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * symfony#49233
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/a Replaces #49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * #49233 Commits ------- 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/a Replaces #49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * #49233 Commits ------- cb3db96 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
@OskarStark see #49419 |
Using
Test
suffix is deprecated since PHPUnit 10Spotted in
cc @derrabus