public function ModuleTest::customErrorHandler

Defines an error handler which is used in the test.

Parameters

int $error_level: The level of the error raised.

string $message: The error message.

string $filename: The filename that the error was raised in.

int $line: The line number the error was raised at.

array $context: An array that points to the active symbol table at the point the error occurred.

Because this is registered in set_error_handler(), it has to be public.

See also

set_error_handler()

File

drupal/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php, line 146
Definition of Drupal\views\Tests\ModuleTest.

Class

ModuleTest

Namespace

Drupal\views\Tests

Code

public function customErrorHandler($error_level, $message, $filename, $line, $context) {
  $this->lastErrorMessage = $message;
}