You are here

function DrupalErrorHandlerUnitTest::assertNoErrorMessage in SimpleTest 7

Helper function: assert that the error message is not found.

1 call to DrupalErrorHandlerUnitTest::assertNoErrorMessage()
DrupalErrorHandlerUnitTest::testErrorHandler in tests/error.test
Test the error handler.

File

tests/error.test, line 114

Class

DrupalErrorHandlerUnitTest
Tests Drupal error and exception handlers.

Code

function assertNoErrorMessage(array $error) {
  $message = t('%type: %message in %function (line %line of %file).', $error);
  $this
    ->assertNoRaw($message, t('Error !message not found.', array(
    '!message' => $message,
  )));
}