function DrupalTestCase::assertIsA in SimpleTest 5
Same name and namespace in other branches
- 6 drupal_test_case.php \DrupalTestCase::assertIsA()
Type and class test. Will pass if class matches the type name or is a subclass or if not an object, but the type is correct.
Parameters
mixed $object Object to test.: @param string $type Type name as string. @param string $message Message to display. @return boolean True on pass. @access public
File
- ./
drupal_test_case.php, line 468
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 assertIsA($object, $type, $message = "%s") {
return $this
->assertExpectation(new IsAExpectation($type), $object, $message);
}