protected function DrupalTestCase::assertNotIdentical in SimpleTest 7
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertNotIdentical()
- 6.2 drupal_web_test_case.php \DrupalTestCase::assertNotIdentical()
- 6 drupal_test_case.php \DrupalTestCase::assertNotIdentical()
- 7.2 drupal_web_test_case.php \DrupalTestCase::assertNotIdentical()
Check to see if two values are not identical.
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.
4 calls to DrupalTestCase::assertNotIdentical()
- DatabaseConnectionTestCase::testConnectionClosing in tests/
database_test.test - Tests the closing of a database connection.
- DatabaseConnectionTestCase::testConnectionRouting in tests/
database_test.test - Test that connections return appropriate connection objects.
- DatabaseTransactionTestCase::testTransactionRollBackSupported in tests/
database_test.test - Test transaction rollback on a database that supports transactions.
- FileTestCase::createFile in tests/
file.test - Create a file and save it to the files table and assert that it occurs correctly.
File
- ./
drupal_web_test_case.php, line 334
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function assertNotIdentical($first, $second, $message = '', $group = 'Other') {
return $this
->assert($first !== $second, $message ? $message : t('First value is not identical to second value'), $group);
}