You are here

protected function DrupalTestCase::assertNotEqual in SimpleTest 7

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

Check to see if two values are not equal.

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.

12 calls to DrupalTestCase::assertNotEqual()
DatabaseSelectComplexTestCase::testDefaultJoin in tests/database_test.test
Test simple JOIN statements.
DatabaseSelectTestCase::testRandomOrder in tests/database_test.test
Test that random ordering of queries works.
DrupalWebTestCase::assertNoTitle in ./drupal_web_test_case.php
Pass if the page title is not the given string.
FileCopyTest::testExistingRename in tests/file.test
Test renaming when copying over a file that already exists.
FileDirectoryTest::testFileDestination in tests/file.test
This will test the filepath for a destination based on passed flags and whether or not the file exists.

... See full list

File

./drupal_web_test_case.php, line 298

Class

DrupalTestCase
Base class for Drupal tests.

Code

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