You are here

protected function RequestSanitizerTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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() {
  parent::setUp();
  $this->errors = [];
  set_error_handler([
    $this,
    "errorHandler",
  ]);
}