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