public function BootstrapGetFilenameTestCase::fileNotFoundErrorHandler in Drupal 7
Skips handling of "file not found" errors.
File
- modules/
simpletest/ tests/ bootstrap.test, line 456
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);
}