function 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.
44 calls to DrupalTestCase::assertNotEqual()
- AJAXFormPageCacheTestCase::testSimpleAJAXFormValue in modules/
simpletest/ tests/ ajax.test - Create a simple form, then POST to system/ajax to change to it.
- DatabaseConnectionTestCase::testConnectionOptions in modules/
simpletest/ tests/ database_test.test - Tests the connection options of the active database.
- DatabaseSelectCloneTest::testNestedQueryCloning in modules/
simpletest/ tests/ database_test.test - Tests that nested SELECT queries are cloned properly.
- DatabaseSelectCloneTest::testSelectConditionSubQueryCloning in modules/
simpletest/ tests/ database_test.test - Test that subqueries as value within conditions are cloned properly.
- DatabaseSelectComplexTestCase::testDefaultJoin in modules/
simpletest/ tests/ database_test.test - Test simple JOIN statements.
File
-
modules/
simpletest/ drupal_web_test_case.php, line 406
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function assertNotEqual($first, $second, $message = '', $group = 'Other') {
return $this->assert($first != $second, $message ? $message : t('Value @first is not equal to value @second.', array(
'@first' => var_export($first, TRUE),
'@second' => var_export($second, TRUE),
)), $group);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.