You are here

public function NodePreviewTest::errorHandler in Entity Print 8.2

Same name and namespace in other branches
  1. 8 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 88

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');
}