function RequestSanitizerTest::sanitizerTestErrorHandler

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

Class

RequestSanitizerTest
Tests DrupalRequestSanitizer class.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.