DrupalTestCase::assertFalse

  1. drupal
    1. 8
    2. 7
Versions
7 protected DrupalTestCase::assertFalse($value, $message = '', $group = 'Other')

Check to see if a value is false (an empty string, 0, NULL, or FALSE).

Parameters

$value The value on which the assertion is to be done.

$message The message to display along with the assertion.

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

Return value

TRUE if the assertion succeeded, FALSE otherwise.

Code

modules/simpletest/drupal_web_test_case.php, line 255

<?php
protected function assertFalse($value, $message = '', $group = 'Other') {
  return $this->assert(!$value, $message ? $message : t('Value @value is FALSE.', array('@value' => var_export($value, TRUE))), $group);
}
?>