This commit is contained in:
Fabio Ivona
2021-09-22 11:05:04 +02:00
parent 1bde49b3c4
commit 05c1c82ae2
2 changed files with 4 additions and 4 deletions

View File

@ -98,8 +98,8 @@ final class TestSuite
$this->afterEach = new AfterEachRepository();
$this->afterAll = new AfterAllRepository();
$this->rootPath = (string) realpath($rootPath);
$this->testPath = $testPath;
$this->rootPath = (string) realpath($rootPath);
$this->testPath = $testPath;
$this->workingEnv = 'local';
}
@ -109,7 +109,7 @@ final class TestSuite
public static function getInstance(string $rootPath = null, string $testPath = null, string $workingEnv = null): TestSuite
{
if (is_string($rootPath) && is_string($testPath)) {
self::$instance = new TestSuite($rootPath, $testPath);
self::$instance = new TestSuite($rootPath, $testPath);
self::$instance->workingEnv = $workingEnv ?? 'local';
foreach (Plugin::$callables as $callable) {

View File

@ -50,7 +50,7 @@ it('can filter the test suite filenames to those with the only method', function
]);
});
it('does not filter the test suite filenames to those with the only method when working in CI pipeline', function(){
it('does not filter the test suite filenames to those with the only method when working in CI pipeline', function () {
$testSuite = TestSuite::getInstance(getcwd(), 'tests', 'ci');
$test = function () {};