Skip to content

IntegerMatcher

Thiago Ferreira edited this page Mar 9, 2019 · 2 revisions

How to use

require(variable).isInteger();

or

ensure(variable).isInteger();

Methods

equalTo(int value);
greaterThan(int min);
greaterThanOrEqualTo(int min);
lessThan(int max);
lessThanOrEqualTo(int max);
between(int min, int max);
even();
odd();
positive();
negative();
Clone this wiki locally