function Assert::notEndsWith
@psalm-pure
Parameters
string $value:
string $suffix:
string $message:
Throws
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 1139
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function notEndsWith($value, $suffix, $message = '') {
if ($suffix === \substr($value, -\strlen($suffix))) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected a value not to end with %2$s. Got: %s', static::valueToString($value), static::valueToString($suffix)));
}
}