public function ModuleTest::customErrorHandler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/ModuleTest.php \Drupal\views\Tests\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
File
- core/
modules/ views/ src/ Tests/ ModuleTest.php, line 137 - Contains \Drupal\views\Tests\ModuleTest.
Class
Namespace
Drupal\views\TestsCode
public function customErrorHandler($error_level, $message, $filename, $line, $context) {
$this->lastErrorMessage = $message;
}