mirror of
https://github.com/pestphp/pest.git
synced 2026-03-13 03:07:22 +01:00
lint
This commit is contained in:
@ -98,8 +98,8 @@ final class TestSuite
|
|||||||
$this->afterEach = new AfterEachRepository();
|
$this->afterEach = new AfterEachRepository();
|
||||||
$this->afterAll = new AfterAllRepository();
|
$this->afterAll = new AfterAllRepository();
|
||||||
|
|
||||||
$this->rootPath = (string) realpath($rootPath);
|
$this->rootPath = (string) realpath($rootPath);
|
||||||
$this->testPath = $testPath;
|
$this->testPath = $testPath;
|
||||||
$this->workingEnv = 'local';
|
$this->workingEnv = 'local';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ final class TestSuite
|
|||||||
public static function getInstance(string $rootPath = null, string $testPath = null, string $workingEnv = null): TestSuite
|
public static function getInstance(string $rootPath = null, string $testPath = null, string $workingEnv = null): 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 ?? 'local';
|
self::$instance->workingEnv = $workingEnv ?? 'local';
|
||||||
|
|
||||||
foreach (Plugin::$callables as $callable) {
|
foreach (Plugin::$callables as $callable) {
|
||||||
|
|||||||
@ -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');
|
$testSuite = TestSuite::getInstance(getcwd(), 'tests', 'ci');
|
||||||
|
|
||||||
$test = function () {};
|
$test = function () {};
|
||||||
|
|||||||
Reference in New Issue
Block a user