Skip to content
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

PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count" #3813

Merged
merged 1 commit into from Jul 4, 2018
Merged

PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count" #3813

merged 1 commit into from Jul 4, 2018

Conversation

SpacePossum
Copy link
Contributor

public function testAssertCountFromSame($expected, $input = null)
{
if (null === $input) {
$expected = str_replace('count', 'sizeOf', $expected);
Copy link
Member

Choose a reason for hiding this comment

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

This will never run any test case with entirely lowercased sizeof, which is probably the most common usage. I'd rather rewrite the data provider so that different casings are tested just like with count.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 fixed by using some templating

@julienfalque julienfalque added this to the 2.13.0 milestone Jun 14, 2018
@SpacePossum SpacePossum added the RTM Ready To Merge label Jun 22, 2018
@SpacePossum SpacePossum merged commit 67d4f8c into PHP-CS-Fixer:master Jul 4, 2018
SpacePossum added a commit that referenced this pull request Jul 4, 2018
…. (SpacePossum)

This PR was merged into the 2.13-dev branch.

Discussion
----------

PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count".

@ see #3785 (comment)

Commits
-------

67d4f8c PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count".
@SpacePossum SpacePossum removed the RTM Ready To Merge label Jul 4, 2018
@SpacePossum SpacePossum deleted the master_PhpUnitDedicateAssertFixer_sizeof branch July 4, 2018 06:36
@keradus keradus changed the title PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count". PhpUnitDedicateAssertFixer - fix "sizeOf" same as "count" Jul 14, 2018
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.

None yet

2 participants