You are here

protected function DrupalTestCase::assertIdentical in SimpleTest 7

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

Check to see if two values are 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.

58 calls to DrupalTestCase::assertIdentical()
AJAXCommandsTestCase::testAJAXRender in tests/ajax.test
Test ajax_command_settings().
AJAXFrameworkTestCase::testAJAXRender in tests/ajax.test
Test proper passing of JavaScript settings via ajax_render().
BootstrapGetFilenameTestCase::testDrupalGetFilename in tests/bootstrap.test
Test that drupal_get_filename() works correctly when the file is not found in the database.
BootstrapVariableTestCase::testVariable in tests/bootstrap.test
testVariable
BootstrapVariableTestCase::testVariableDefaults in tests/bootstrap.test
Makes sure that the default variable parameter is passed through okay.

... See full list

File

./drupal_web_test_case.php, line 316

Class

DrupalTestCase
Base class for Drupal tests.

Code

protected function assertIdentical($first, $second, $message = '', $group = 'Other') {
  return $this
    ->assert($first === $second, $message ? $message : t('First value is identical to second value'), $group);
}