]> git.mxchange.org Git - core.git/blobdiff - tests/bootstrap.php
Continued:
[core.git] / tests / bootstrap.php
index 35eb2b2ae4e42ace9d320dd512f3f260a2332c43..ad7bc9f43f9a5ce492c5758da9cbd7c27ae3b6e1 100644 (file)
@@ -1,7 +1,9 @@
 <?php
+// Import needed stuff
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 
 /*
- * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ * 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);