Translated using Weblate (Slovenian)
[phpmyadmin.git] / test / bootstrap-dist.php
blob969c6f9a53186769638289bbf65180e491539a4c
1 <?php
3 declare(strict_types=1);
5 if (! defined('ROOT_PATH')) {
6 // phpcs:disable PSR1.Files.SideEffects
7 define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
8 // phpcs:enable
11 /**
12 * Set precision to sane value, with higher values
13 * things behave slightly unexpectedly, for example
14 * round(1.2, 2) returns 1.199999999999999956.
16 ini_set('precision', '14');
18 // Let PHP complain about all errors
19 error_reporting(E_ALL);
21 // Ensure PHP has set timezone
22 date_default_timezone_set('UTC');
24 require_once ROOT_PATH . 'libraries/constants.php';
25 require_once AUTOLOAD_FILE;// Some phpunit configurations will need it