Méthode | Description | |
---|---|---|
__construct ( mixed $value, mixed $margin, string $message = '%s' ) | Sets the value to compare against and the fuzziness of the match. | |
test ( mixed $compare ) : boolean | Tests the expectation. True if it matches the held value. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
Méthode | Description | |
---|---|---|
outsideMessage ( mixed $compare ) | Creates a the message for being within the range. | |
withinMessage ( mixed $compare ) | Creates a the message for being within the range. |
protected outsideMessage ( mixed $compare ) | ||
$compare | mixed | Value being tested. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
Résultat | string | Description of success or failure. |
protected withinMessage ( mixed $compare ) | ||
$compare | mixed | Value being tested. |