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

Use PHPUnit 9.6 to run Symfony's test suite#49233

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

Merged

Conversation

@derrabus
Copy link
Member

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

Let's use PHPUnit 9.6 to run test test suite if we can.

alexislefebvre and TomasVotruba reacted with thumbs up emoji
@carsonbotcarsonbot added this to the5.4 milestoneFeb 4, 2023
Comment on lines -13 to -14
if (\PHP_VERSION_ID <70200) {
putenv('SYMFONY_PHPUNIT_VERSION=7.5');
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This was a leftover from Symfony 4 wasn't it?

xabbuh reacted with thumbs up emoji

Choose a reason for hiding this comment

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

I'd keep this, the bridge is still declared as compatible with <7.2

@derrabus
Copy link
MemberAuthor

All right, the output gives us a couple of tasks to work on for PHPUnit 10.

cc@OskarStark

OskarStark reacted with thumbs up emoji

@xabbuh
Copy link
Member

👍 I would have expected a lot of messages about the deprecatedsetMethods() method though (see#49218). 🤔

@OskarStark
Copy link
Contributor

OskarStark commentedFeb 4, 2023
edited
Loading

It was fixed in

Referenced PR in#49218

TomasVotruba reacted with thumbs up emoji

@xabbuh
Copy link
Member

Yeah, for that particular case which is a file that can be used by users of Symfony. But we make heavy use ofsetMethods() in our own tests.

@OskarStark
Copy link
Contributor

OskarStark commentedFeb 4, 2023
edited
Loading

CleanShot 2023-02-04 at 10 42 51@2x

Ok... but why 🤷‍♂️ ...

That will be a lot of work for the abstract test cases in/Test/

OskarStark added a commit to OskarStark/symfony that referenced this pull requestFeb 4, 2023
Using `Test` suffix is deprecated since PHPUnit 10Spooted in*symfony#49233
@OskarStark
Copy link
Contributor

That will be a lot of work for the abstract test cases in /Test/

Oh no, we already named them*TestCase 💪

derrabus reacted with rocket emoji

OskarStark added a commit to OskarStark/symfony that referenced this pull requestFeb 4, 2023
Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony#49233
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
nicolas-grekas added a commit that referenced this pull requestFeb 6, 2023
…NotAttribute()` (xabbuh)This PR was merged into the 5.4 branch.Discussion----------stop using `assertObjectHasAttribute()`/`assertObjectHasNotAttribute()`| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | related#49233| License       | MIT| Doc PR        |Commits-------442b43c stop using assertObjectHasAttribute()/assertObjectHasNotAttribute()
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
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/`
symfony-splitter pushed a commit to symfony/console 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/security-core 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/security-bundle 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/property-access 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/twig-bridge 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/routing 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/serializer 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/translation 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
symfony-splitter pushed a commit to symfony/lock 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
@derrabus
Copy link
MemberAuthor

What's the fix for…

Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.

? Registering a custom error handler? 🤔

nicolas-grekas added a commit that referenced this pull requestFeb 14, 2023
…Unit getMockClass() method (xabbuh)This PR was merged into the 5.4 branch.Discussion----------[WebProfilerBundle] replace usages of the deprecated PHPUnit getMockClass() method| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | related to#49233| License       | MIT| Doc PR        |Commits-------2f7c509 replace usages of the deprecated PHPUnit getMockClass() method
@xabbuh
Copy link
Member

I think it's easier:#49375 (I need to check all places though)

derrabus and TomasVotruba reacted with rocket emoji

nicolas-grekas added a commit that referenced this pull requestFeb 14, 2023
…certain strings (xabbuh)This PR was merged into the 5.4 branch.Discussion----------use proper methods to assert exception messages contain certain strings| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | related to#49233| License       | MIT| Doc PR        |Commits-------5b3e6a5 use proper methods to assert exception messages contain certain strings
@derrabusderrabusforce-pushed theimprovement/phpunit-9.6 branch 2 times, most recently fromecbe5b7 to4237f77CompareFebruary 14, 2023 18:12
@derrabusderrabusforce-pushed theimprovement/phpunit-9.6 branch 4 times, most recently from493a9b9 toefd7cbbCompareFebruary 14, 2023 21:51
@derrabus
Copy link
MemberAuthor

🟢

OskarStark reacted with heart emoji

nicolas-grekas added a commit that referenced this pull requestFeb 15, 2023
This PR was merged into the 6.2 branch.Discussion----------Fix PHPUnit 9.6 deprecations| Q             | A| ------------- | ---| Branch?       | 6.2| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | Related to#49233| License       | MIT| Doc PR        | N/AThis PR fixes deprecations introduced by PHPUnit 9.6. We should merge this PR before merging up#49233.Commits-------a6896fa Fix PHPUnit 9.6 deprecations
@nicolas-grekas
Copy link
Member

Thank you@derrabus.

@nicolas-grekasnicolas-grekas merged commitc7a7cb8 intosymfony:5.4Feb 15, 2023
@derrabusderrabus deleted the improvement/phpunit-9.6 branchFebruary 15, 2023 18:37
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestJul 28, 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       | Refssymfony/symfony#49233| License       | MIT| Doc PR        | n/aReplaces #49234Using `Test` suffix is deprecated since PHPUnit 10Spotted in*symfony/symfony#49233Commits-------cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

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

[8]ページ先頭

©2009-2025 Movatter.jp