public function BootstrapGetFilenameWebTestCase::fileNotFoundErrorHandler

Skips handling of "file not found" errors.

File

drupal/modules/simpletest/tests/bootstrap.test, line 572

Class

BootstrapGetFilenameWebTestCase
Test drupal_get_filename() in the context of a full Drupal installation.

Code

public function fileNotFoundErrorHandler($error_level, $message, $filename, $line, $context) {

  // Skip error handling if this is a "file not found" error.
  if (strpos($message, 'is missing from the file system:') !== FALSE || strpos($message, 'has moved within the file system:') !== FALSE) {
    $this->getFilenameTestTriggeredError = $message;
    return;
  }
  _drupal_error_handler($error_level, $message, $filename, $line, $context);
}