protected function DrupalTestCase::assertNull in SimpleTest 7.2
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertNull()
- 6.2 drupal_web_test_case.php \DrupalTestCase::assertNull()
- 6 drupal_test_case.php \DrupalTestCase::assertNull()
- 7 drupal_web_test_case.php \DrupalTestCase::assertNull()
Check to see if a value is NULL.
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.
File
- ./
drupal_web_test_case.php, line 276 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function assertNull($value, $message = '', $group = 'Other') {
return $this
->assert(!isset($value), $message ? $message : t('Value @value is NULL.', array(
'@value' => var_export($value, TRUE),
)), $group);
}