function DrupalTestCase::assertIdentical in SimpleTest 5
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalTestCase::assertIdentical()
- 6 drupal_test_case.php \DrupalTestCase::assertIdentical()
- 7.2 drupal_web_test_case.php \DrupalTestCase::assertIdentical()
- 7 drupal_web_test_case.php \DrupalTestCase::assertIdentical()
Will trigger a pass if the two parameters have the same value and same type. 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
1 call to DrupalTestCase::assertIdentical()
File
- ./
drupal_test_case.php, line 533
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 assertIdentical($first, $second, $message = "%s") {
return $this
->assertExpectation(new IdenticalExpectation($first), $second, $message);
}