You are here

function DrupalErrorHandlerUnitTest::assertErrorMessage in SimpleTest 7

Helper function: assert that the error message is found.

2 calls to DrupalErrorHandlerUnitTest::assertErrorMessage()
DrupalErrorHandlerUnitTest::testErrorHandler in tests/error.test
Test the error handler.
DrupalErrorHandlerUnitTest::testExceptionHandler in tests/error.test
Test the exception handler.

File

tests/error.test, line 106

Class

DrupalErrorHandlerUnitTest
Tests Drupal error and exception handlers.

Code

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