Class ToBeWithin
Verify whether the value is no range.
$matcher = new ToBeWithin([0, 10]); $matcher->match(1); //return true $matcher->match(11); //return false
- expect\matcher\ToBeWithin implements expect\matcher\ReportableMatcher
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeWithin.php
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeWithin.php
public
|
|
public
boolean
|
|
public
|
#
reportFailed(
Report the reason for the failure of positive evaluation. |
public
|
#
reportNegativeFailed(
Report the reason for the failure of negative evaluation. |