From 05c1c82ae2e3042e8d5a9423cad66bd6f79cac51 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Wed, 22 Sep 2021 11:05:04 +0200 Subject: [PATCH] lint --- src/TestSuite.php | 6 +++--- tests/Unit/TestSuite.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TestSuite.php b/src/TestSuite.php index d25dfe23..252d40be 100644 --- a/src/TestSuite.php +++ b/src/TestSuite.php @@ -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) { diff --git a/tests/Unit/TestSuite.php b/tests/Unit/TestSuite.php index 383506a3..15c3848f 100644 --- a/tests/Unit/TestSuite.php +++ b/tests/Unit/TestSuite.php @@ -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 () {};