public static function contains($string, $needle, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($string, $message, $propertyPath);
if (mb_strpos($string, $needle, null, $encoding) === false) {
$message = sprintf($message ?: 'Value "%s" does not contain "%s".', static::stringify($string), static::stringify($needle));
$constraints = array('needle' => $needle, 'encoding' => $encoding);
throw static::createException($string, $message, static::INVALID_STRING_CONTAINS, $propertyPath, $constraints);
}
return true;
}