public function test_get_error()
 {
     $this->assertEquals(LogLevel::CRITICAL, ErrorCodeToLogLevelMap::getLogLevelForErrorCode(E_ERROR));
 }
 /**
  * @param IError $error
  *
  * @return bool
  */
 public function handleFatalError(IError $error)
 {
     $logLevel = ErrorCodeToLogLevelMap::getLogLevelForErrorCode($error->getCode());
     $message = s('Fatal Error (%s): %s', ErrorType::getErrorTypeName($error->getCode()), $error->getMessage());
     $details = ['code' => $error->getCode(), 'message' => $error->getMessage(), 'file' => $error->getFile(), 'line' => $error->getLine()];
     $this->logger->log($logLevel, $message, $details);
 }