Skip navigation
Help

DrupalTestCase::fail

7 drupal_web_test_case.php protected DrupalTestCase::fail($message = NULL, $group = 'Other')

Fire an assertion that is always negative.

Parameters

$message: The message to display along with the assertion.

$group: The type of assertion - examples are "Browser", "PHP".

Return value

FALSE.

44 calls to DrupalTestCase::fail()

File

drupal/modules/simpletest/drupal_web_test_case.php, line 387

Code

protected function fail($message = NULL, $group = 'Other') {
  return $this->assert(FALSE, $message, $group);
}