You are here

public function RequestSanitizerTest::sanitizerTestErrorHandler in Drupal 7

Catches and logs errors to $this->errors.

Parameters

int $errno: The severity level of the error.

string $errstr: The error message.

File

modules/simpletest/tests/request_sanitizer.test, line 219
Tests for the RequestSanitizer class.

Class

RequestSanitizerTest
Tests DrupalRequestSanitizer class.

Code

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