types fix

This commit is contained in:
Fabio Ivona
2021-09-22 11:00:41 +02:00
parent b22f5e0c85
commit 1bde49b3c4

View File

@ -100,6 +100,7 @@ final class TestSuite
$this->rootPath = (string) realpath($rootPath); $this->rootPath = (string) realpath($rootPath);
$this->testPath = $testPath; $this->testPath = $testPath;
$this->workingEnv = 'local';
} }
/** /**
@ -109,7 +110,7 @@ final class TestSuite
{ {
if (is_string($rootPath) && is_string($testPath)) { if (is_string($rootPath) && is_string($testPath)) {
self::$instance = new TestSuite($rootPath, $testPath); self::$instance = new TestSuite($rootPath, $testPath);
self::$instance->workingEnv = $workingEnv; self::$instance->workingEnv = $workingEnv ?? 'local';
foreach (Plugin::$callables as $callable) { foreach (Plugin::$callables as $callable) {
$callable(); $callable();