protected function DrupalTestCase::assertIdentical

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

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.

130 calls to DrupalTestCase::assertIdentical()
AJAXFrameworkTestCase::testLazyLoad in drupal/modules/simpletest/tests/ajax.test
Test that new JavaScript and CSS files added during an AJAX request are returned.
BookTestCase::checkBookNode in drupal/modules/book/book.test
Checks the outline of sub-pages; previous, up, and next.
BootstrapGetFilenameTestCase::testDrupalGetFilename in drupal/modules/simpletest/tests/bootstrap.test
Test that drupal_get_filename() works correctly when the file is not found in the database.
BootstrapMiscTestCase::testMisc in drupal/modules/simpletest/tests/bootstrap.test
Test miscellaneous functions in bootstrap.inc.
BootstrapOverrideServerVariablesTestCase::testDrupalOverrideServerVariablesProvidedURL in drupal/modules/simpletest/tests/bootstrap.test
Test providing a direct URL to to drupal_override_server_variables().

... See full list

File

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

Class

DrupalTestCase
Base class for Drupal tests.

Code

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