MinCount and MaxCount assertion
JustBlackBird opened this issue · comments
Dmitriy Simushev commented
I've faced a use case where I should check length of a \Countable
. I see two methods for such checks:
Assert::minCount
is likeAssert::minLength
but for\Countable
Assert::maxCount
is likeAssert::maxLength
but for\Countable
Also an assertion that the passed in argument is a \Countable
can be added.
The question is: are the maintainers interested in such methods inside of the library? Is so I could provide a PR with their implementation.
Bernhard Schussek commented
I don't see any argument against. All three assertions seem valid to me. :)
For sake of completeness, I'd add countBetween()
too then.