1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00
Files
phpmyadmin/tests/bootstrap.php
Maurício Meneghini Fauth da8fa0cc4e Migrate PHPUnit configuration to version 11.5
- Rename phpunit.xml.dist to phpunit.xml
- Rename tests/bootstrap-dist.php to tests/bootstrap.php

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-07-31 18:22:34 -03:00

27 lines
631 B
PHP

<?php
declare(strict_types=1);
// phpcs:disable PSR1.Files.SideEffects
define('TESTSUITE', true);
if (! defined('ROOT_PATH')) {
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
}
/**
* 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 . 'app/constants.php';
require_once AUTOLOAD_FILE;// Some phpunit configurations will need it