You are here

public function NodePreviewTest::errorHandler in Entity Print 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/NodePreviewTest.php \Drupal\Tests\entity_print\Kernel\NodePreviewTest::errorHandler()

Provides an error handler for purposes of this test.

See set_error_handler() for parameter definitions.

See also

set_error_handler()

File

tests/src/Kernel/NodePreviewTest.php, line 98

Class

NodePreviewTest
Tests the entity print link in node preview.

Namespace

Drupal\Tests\entity_print\Kernel

Code

public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
  $this->errors[] = compact('errno', 'errstr', 'errfile', 'errline', 'errcontext');
}