feat: adds plugin uses api

This commit is contained in:
Nuno Maduro
2020-05-21 21:44:05 +02:00
parent 5c6bb43d8d
commit 6c4be0190e
5 changed files with 54 additions and 2 deletions

View File

@ -106,7 +106,13 @@ final class TestSuite
public static function getInstance(string $rootPath = null): TestSuite
{
if (is_string($rootPath)) {
return self::$instance ?? self::$instance = new TestSuite($rootPath);
self::$instance = new TestSuite($rootPath);
foreach (Plugin::$callables as $callable) {
$callable();
}
return self::$instance;
}
if (self::$instance === null) {