You are here

function DrupalTestCase::assertNotIdentical in SimpleTest 6

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

Will trigger a pass if the two parameters have the different value or different type.

Parameters

mixed $first Value to compare.: @param mixed $second Value to compare. @param string $message Message to display. @return boolean True on pass @access public

File

./drupal_test_case.php, line 673

Class

DrupalTestCase
Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.

Code

function assertNotIdentical($first, $second, $message = "%s") {
  return $this
    ->assertExpectation(new NotIdenticalExpectation($first), $second, $message);
}