You are here

protected function RequestSanitizerTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php \Drupal\Tests\Core\Security\RequestSanitizerTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php, line 29

Class

RequestSanitizerTest
Tests RequestSanitizer class.

Namespace

Drupal\Tests\Core\Security

Code

protected function setUp() : void {
  parent::setUp();
  $this->errors = [];
  set_error_handler([
    $this,
    "errorHandler",
  ]);
}