protected function DrupalTestCase::assertNotIdentical

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

Check to see if two values are not identical.


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

10 calls to DrupalTestCase::assertNotIdentical()
DatabaseConnectionTestCase::testConnectionClosing in drupal/modules/simpletest/tests/database_test.test
Tests the closing of a database connection.
DatabaseConnectionTestCase::testConnectionRouting in drupal/modules/simpletest/tests/database_test.test
Test that connections return appropriate connection objects.
DatabaseSelectTestCase::testSelectDuplicateAlias in drupal/modules/simpletest/tests/database_test.test
Test that aliases are renamed when duplicates.
DatabaseTransactionTestCase::testTransactionRollBackSupported in drupal/modules/simpletest/tests/database_test.test
Test transaction rollback on a database that supports transactions.
DrupalJSONTest::testJSON in drupal/modules/simpletest/tests/common.test
Tests converting PHP variables to JSON strings and back.

... See full list


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


Base class for Drupal tests.


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