public function BootstrapGetFilenameWebTestCase::fileNotFoundErrorHandler in Drupal 7
Skips handling of "file not found" errors.
File
- 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) {
// 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);
}