-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Added shortcut to get a PHPUnit_Framework_Constraint_Count instance #628
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
Added shortcut to get a PHPUnit_Framework_Constraint_Count instance #628
Conversation
* @param int $count | ||
* @return PHPUnit_Framework_Constraint_Count | ||
*/ | ||
public static function arrayCount($count) |
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 name arrayCount()
is wrong as objects that implement the Countable
interface are also handled by PHPUnit_Framework_Constraint_Count
.
Okay ... and suggestion for another name? |
I don't really have a good idea. just
Maybe something with |
I like |
I won't use How about |
Good point :)
What about $stub->expects($this->once())
->method('bar')
->with($this->countOf(5)); |
|
Any update on this @havvg? |
I'm just going to merge this and call it |
No description provided.