X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fbootstrap.php;h=9e12404c9e6d614a00f90eb289df6fb9e5a42e77;hb=HEAD;hp=35eb2b2ae4e42ace9d320dd512f3f260a2332c43;hpb=8caddd87d0df2a41a9cf31aeb0b168e610bbc31e;p=core.git diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 35eb2b2a..ad7bc9f4 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,7 +1,9 @@ + * Copyright (C) 2017 - 2023 Core Developer Team * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,5 +34,14 @@ require dirname(__DIR__) . '/index.php'; // Remove it to prevent leak to PHPUnit unset($_SERVER['argv'][1]); +// For these unit tests, xdebug must be quieted a bit +if (extension_loaded('xdebug')) { + // Quiet it a bit as this interfers with the nice testing output + ini_set('xdebug.show_exception_trace', FALSE); +} + // Autoload more stuff require dirname(__DIR__) . '/vendor/autoload.php'; + +// Quiet DNS resolver as this is not wanted here +FrameworkBootstrap::getConfigurationInstance()->setConfigEntry('is_quiet_dns_resolver_enabled', TRUE);