function Assert::notContains
@psalm-pure
Parameters
string $value:
string $subString:
string $message:
Throws
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 1012
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function notContains($value, $subString, $message = '') {
if (false !== \strpos($value, $subString)) {
static::reportInvalidArgument(\sprintf($message ?: '%2$s was not expected to be contained in a value. Got: %s', static::valueToString($value), static::valueToString($subString)));
}
}