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

Appearance settings

[Inflector] Fix testPluralize() arguments names #36639

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

Merged
merged 1 commit into from
May 4, 2020

Conversation

fancyweb
Copy link
Contributor

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

This is minor but the testPluralize() method arguments names are inversed ($plural contains the singular, $singular contains the plural, etc.). I lost some time on this because I thought the test was wrong 😅 I guess it's better to have a test that is easier to understand.

@@ -294,30 +294,30 @@ public function pluralizeProvider()
/**
* @dataProvider singularizeProvider
*/
public function testSingularize($plural, $singular)
public function testSingularize($plural, $expectedSingular)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I revert the changes on this method or backport it on 3.4?

Copy link
Member

Choose a reason for hiding this comment

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

yes please

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Apr 30, 2020
fabpot added a commit that referenced this pull request May 4, 2020
… (fancyweb)

This PR was merged into the 3.4 branch.

Discussion
----------

[3.4][Inflector] Improve testSingularize() argument name

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #36639 (comment)
| License       | MIT
| Doc PR        | -

Follow up of #36639 on 3.4 to keep both tests methods synchronized.

Commits
-------

7540524 [3.4][Inflector] Improve testSingularize() argument name
@fabpot
Copy link
Member

fabpot commented May 4, 2020

Thank you @fancyweb.

@fabpot fabpot merged commit 106408b into symfony:4.4 May 4, 2020
@fancyweb fancyweb deleted the inflector-test branch May 4, 2020 07:50
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.