function Assert::lessThan
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit\Framework\Assert::lessThan()
@psalm-pure
Parameters
mixed $value:
mixed $limit:
string $message:
Throws
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 890
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function lessThan($value, $limit, $message = '') {
if ($value >= $limit) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected a value less than %2$s. Got: %s', static::valueToString($value), static::valueToString($limit)));
}
}