function BootstrapGetFilenameTestCase::fileNotFoundErrorHandler

Skips handling of "file not found" errors.

File

modules/simpletest/tests/bootstrap.test, line 488

Class

BootstrapGetFilenameTestCase
Test drupal_get_filename()'s availability.

Code

public function fileNotFoundErrorHandler($error_level, $message, $filename, $line) {
    // 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);
}

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