You are here

protected function DrupalErrorCollectionUnitTest::error in SimpleTest 7

Fire an error assertion.

Parameters

$message: The message to display along with the assertion.

$group: The type of assertion - examples are "Browser", "PHP".

$caller: The caller of the error.

Return value

FALSE.

Overrides DrupalTestCase::error

File

tests/common.test, line 1497
Tests for common.inc functionality.

Class

DrupalErrorCollectionUnitTest
Tests Simpletest error and exception collector.

Code

protected function error($message = '', $group = 'Other', array $caller = NULL) {

  // This function overiddes DrupalWebTestCase::error(). We collect an error...
  $this->collectedErrors[] = array(
    'message' => $message,
    'group' => $group,
    'caller' => $caller,
  );

  // ... and ignore it.
}