You are here

function DrupalTestCase::assertNotA in SimpleTest 6

Same name and namespace in other branches
  1. 5 drupal_test_case.php \DrupalTestCase::assertNotA()

Type and class mismatch test. Will pass if class name or underling type does not match the one specified.

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 609

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 assertNotA($object, $type, $message = "%s") {
  return $this
    ->assertExpectation(new NotAExpectation($type), $object, $message);
}