Continued:
[core.git] / tests / bootstrap.php
index 35eb2b2ae4e42ace9d320dd512f3f260a2332c43..1f1a364b589b6b6a08d2ab8c8c2360e3cb07a80b 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+// Import needed stuff
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 
 /*
  * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
@@ -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);
+} // END - if
+
 // Autoload more stuff
 require dirname(__DIR__) . '/vendor/autoload.php';
+
+// Quiet DNS resolver as this is not wanted here
+FrameworkBootstrap::getConfigurationInstance()->setConfigEntry('quiet_dns_resolver', TRUE);