Test: Load a module's composer autoloader
This commit is contained in:
parent
3c3437dafa
commit
c027282d8c
|
@ -118,6 +118,11 @@ class Test extends Cli
|
||||||
if (is_dir($moduleTestPath)) {
|
if (is_dir($moduleTestPath)) {
|
||||||
$this->getLoader()->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
|
$this->getLoader()->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$composerAutoloader = "$path/vendor/autoload.php";
|
||||||
|
if (file_exists($composerAutoloader)) {
|
||||||
|
require_once $composerAutoloader;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue