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

Refactor count/notCount parameter name #36

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

krukru
Copy link

@krukru krukru commented Jan 10, 2019

The current parameter name for these two methods is $array with no type suggested in PHPDoc. This could mislead the API consumer that this method accepts a parameter of type array.

Checking into the source code, we can see that this method in fact calls PHPUnit's assertCount, which takes the expected count as it's first parameter. I think that $expectedCount would be a more appropriate name for this parameter, and it's the same name as used in PHPUnit's assertCount method, which makes sense.

The new name more accurately describes the datatype of the parameter
and it is in line with the underlying PHPUnit method parameter name.
@Naktibalda Naktibalda merged commit a4ce274 into Codeception:master Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants