protected function DrupalTestCase::assertNotEqual

7.x drupal_web_test_case.php protected DrupalTestCase::assertNotEqual($first, $second, $message = '', $group = 'Other')

Check to see if two values are not equal.


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

28 calls to DrupalTestCase::assertNotEqual()
DatabaseConnectionTestCase::testConnectionOptions in drupal/modules/simpletest/tests/database_test.test
Tests the connection options of the active database.
DatabaseSelectComplexTestCase::testDefaultJoin in drupal/modules/simpletest/tests/database_test.test
Test simple JOIN statements.
DatabaseSelectComplexTestCase::testJoinTwice in drupal/modules/simpletest/tests/database_test.test
Confirm we can join on a single table twice with a dynamic alias.
DatabaseSelectTestCase::testRandomOrder in drupal/modules/simpletest/tests/database_test.test
Test that random ordering of queries works.
DrupalWebTestCase::assertNoTitle in drupal/modules/simpletest/drupal_web_test_case.php
Pass if the page title is not the given string.

... See full list


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


Base class for Drupal tests.


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);