diff --git a/library/Icinga/Application/Test.php b/library/Icinga/Application/Test.php index 399a7d8b9..74321ea1b 100644 --- a/library/Icinga/Application/Test.php +++ b/library/Icinga/Application/Test.php @@ -118,6 +118,11 @@ class Test extends Cli if (is_dir($moduleTestPath)) { $this->getLoader()->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath); } + + $composerAutoloader = "$path/vendor/autoload.php"; + if (file_exists($composerAutoloader)) { + require_once $composerAutoloader; + } } return $this;