Translated using Weblate (Arabic)
[phpmyadmin.git] / test / bootstrap-static.php
blob26050c1de26285d7250fd20b4a2c4b05038bbcae
1 <?php
2 /**
3 * Bootstrap file for psalm
5 * The checks for defined are because psalm --alter can use this file multiple times
6 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Config\Settings;
12 if (! defined('ROOT_PATH')) {
13 // phpcs:disable PSR1.Files.SideEffects
14 define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
15 // phpcs:enable
18 if (! defined('TEST_PATH')) {
19 // phpcs:disable PSR1.Files.SideEffects
20 define('TEST_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
21 // phpcs:enable
24 // phpcs:disable PSR1.Files.SideEffects
25 if (! defined('PHPMYADMIN')) {
26 define('PHPMYADMIN', true);
29 if (! defined('TESTSUITE')) {
30 define('TESTSUITE', true);
33 // phpcs:enable
35 include_once ROOT_PATH . 'examples/signon-script.php';
36 require_once ROOT_PATH . 'libraries/constants.php';
37 require_once AUTOLOAD_FILE;
39 $settings = new Settings([]);
40 $GLOBALS['cfg'] = $settings->toArray();
41 $GLOBALS['server'] = 0;
43 // phpcs:disable PSR1.Files.SideEffects
44 if (! defined('PMA_PATH_TO_BASEDIR')) {
45 define('PMA_PATH_TO_BASEDIR', '');
48 // phpcs:enable
50 // for PhpMyAdmin\Plugins\Import\ImportLdi
51 $GLOBALS['plugin_param'] = 'table';