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

Assert::positiveInteger #32

Closed
marcosh opened this issue Dec 2, 2016 · 2 comments
Closed

Assert::positiveInteger #32

marcosh opened this issue Dec 2, 2016 · 2 comments

Comments

@marcosh
Copy link
Contributor

marcosh commented Dec 2, 2016

Aas far as I understand, at the moment to assert that a variable contains a positive integer I need to use two assertions

Assert::integer($a, '...');
Assert::greaterThanEq($a, 0, '...');

Would it make sense to create a new assertion to condense these two in a single call? It could be called something like Assert::natural()

@Nyholm
Copy link
Collaborator

Nyholm commented Dec 29, 2016

👍 if you think it is a common use case.

@Nyholm
Copy link
Collaborator

Nyholm commented Jan 29, 2018

Closed by #35

@Nyholm Nyholm closed this as completed Jan 29, 2018
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

No branches or pull requests

2 participants