Translated using Weblate (Portuguese)
[phpmyadmin.git] / test / bootstrap-dist.php
blob57cc42a7b1498693dc5825b1261e313e22c03205
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 if (! defined('TEST_PATH')) {
12 // This is used at Debian because tests
13 // can be in a different place than the source code
14 // phpcs:disable PSR1.Files.SideEffects
15 define('TEST_PATH', ROOT_PATH);
16 // phpcs:enable
19 /**
20 * Set precision to sane value, with higher values
21 * things behave slightly unexpectedly, for example
22 * round(1.2, 2) returns 1.199999999999999956.
24 ini_set('precision', '14');
26 // Let PHP complain about all errors
27 error_reporting(E_ALL);
29 // Ensure PHP has set timezone
30 date_default_timezone_set('UTC');
32 require_once ROOT_PATH . 'libraries/constants.php';
33 require_once AUTOLOAD_FILE;// Some phpunit configurations will need it