3 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
6 * Copyright (C) 2017 - 2023 Core Developer Team
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 * @author Roland Haeder<roland@mxchange.org>
25 // TODO: check include path
26 //ini_set('include_path', ini_get('include_path'));
29 $_SERVER['argv'][1] = 'app=tests';
32 require dirname(__DIR__) . '/index.php';
34 // Remove it to prevent leak to PHPUnit
35 unset($_SERVER['argv'][1]);
37 // For these unit tests, xdebug must be quieted a bit
38 if (extension_loaded('xdebug')) {
39 // Quiet it a bit as this interfers with the nice testing output
40 ini_set('xdebug.show_exception_trace', FALSE);
43 // Autoload more stuff
44 require dirname(__DIR__) . '/vendor/autoload.php';
46 // Quiet DNS resolver as this is not wanted here
47 FrameworkBootstrap::getConfigurationInstance()->setConfigEntry('is_quiet_dns_resolver_enabled', TRUE);