You are here

protected function DrupalTestCase::assertNotEqual in SimpleTest 6.2

Same name and namespace in other branches
  1. 5 drupal_test_case.php \DrupalTestCase::assertNotEqual()
  2. 6 drupal_test_case.php \DrupalTestCase::assertNotEqual()
  3. 7.2 drupal_web_test_case.php \DrupalTestCase::assertNotEqual()
  4. 7 drupal_web_test_case.php \DrupalTestCase::assertNotEqual()

Check to see if two values are not equal.

Parameters

$first: The first value to check.

$second: The second value to check.

$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.

1 call to DrupalTestCase::assertNotEqual()
DrupalWebTestCase::assertNoTitle in ./drupal_web_test_case.php
Pass if the page title is not the given string.

File

./drupal_web_test_case.php, line 333

Class

DrupalTestCase
Base class for Drupal tests.

Code

protected function assertNotEqual($first, $second, $message = '', $group = 'Other') {
  return $this
    ->assert($first != $second, $message ? $message : t('Value @first is not equal to value @second.', array(
    '@first' => var_export($first, TRUE),
    '@second' => var_export($second, TRUE),
  )), $group);
}