Assertion helper which checks whether a string is not part of another string.
string $haystack: The value to search in.
string $needle: The value to search for.
string $message: The message to display along with the assertion.
string $group: The type of assertion - examples are "Browser", "PHP".
bool TRUE if the assertion succeeded, FALSE otherwise.
protected function assertNotSubString($haystack, $needle, $message = '', $group = 'Other') {
return $this
->assertTrue(strpos($haystack, $needle) === FALSE, $message, $group);
}