You are here

function DrupalTestCase::assertNotEqual in SimpleTest 5

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

Will trigger a pass if the two parameters have a different value. Otherwise a fail.

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 517

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 assertNotEqual($first, $second, $message = "%s") {
  return $this
    ->assertExpectation(new NotEqualExpectation($first), $second, $message);
}