You are here

mongodb_watchdog_test.module in MongoDB 8.2

File

modules/mongodb_watchdog/tests/modules/mongodb_watchdog_test/mongodb_watchdog_test.module
View source
<?php

/**
 * @file
 * Test support module.
 *
 * @see \Drupal\Tests\mongodb_watchdog\Unit\LoggerTest
 */
declare (strict_types=1);

/**
 * Create a stack trace specifically formatted to trigger issue 3219325.
 *
 * @link https://www.drupal.org/project/mongodb/issues/3219325
 */
function mongodb_watchdog_test_3219325() : array {

  // See \Drupal\mongodb_watchdog\Logger::log()
  $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10);

  // Fake XDebug being unable to locate the file.
  unset($bt[0]['file']);
  return $bt;
}

Functions

Namesort descending Description
mongodb_watchdog_test_3219325 Create a stack trace specifically formatted to trigger issue 3219325.