phpmyadmin/test/bootstrap-dist.php
William Desportes e6982c3de5
Fix #16951 - Daily build failing because autoload is not loaded on some phpunit setups
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-09 22:03:06 +02:00

26 lines
637 B
PHP

<?php
declare(strict_types=1);
if (! defined('ROOT_PATH')) {
// phpcs:disable PSR1.Files.SideEffects
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
// phpcs:enable
}
/**
* Set precision to sane value, with higher values
* things behave slightly unexpectedly, for example
* round(1.2, 2) returns 1.199999999999999956.
*/
ini_set('precision', '14');
// Let PHP complain about all errors
error_reporting(E_ALL);
// Ensure PHP has set timezone
date_default_timezone_set('UTC');
require_once ROOT_PATH . 'libraries/vendor_config.php';
require_once AUTOLOAD_FILE;// Some phpunit configurations will need it