mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Further cleanup
This commit is contained in:
@ -101,9 +101,9 @@ final class Runner implements RunnerInterface
|
|||||||
{
|
{
|
||||||
$this->beforeLoadChecks();
|
$this->beforeLoadChecks();
|
||||||
|
|
||||||
LoadStructure::in(TestSuite::getInstance()->rootPath);
|
|
||||||
|
|
||||||
$loader->load();
|
$loader->load();
|
||||||
|
$this->pending = $loader->getSuites();
|
||||||
|
|
||||||
$this->loadPestSuite();
|
$this->loadPestSuite();
|
||||||
|
|
||||||
$this->sortPending();
|
$this->sortPending();
|
||||||
@ -330,7 +330,6 @@ final class Runner implements RunnerInterface
|
|||||||
private function loadPestSuite(): void
|
private function loadPestSuite(): void
|
||||||
{
|
{
|
||||||
$pestTestSuite = TestSuite::getInstance();
|
$pestTestSuite = TestSuite::getInstance();
|
||||||
LoadStructure::in($pestTestSuite->rootPath);
|
|
||||||
|
|
||||||
$files = array_values(array_map(function (TestCaseFactory $factory): string {
|
$files = array_values(array_map(function (TestCaseFactory $factory): string {
|
||||||
return $factory->filename;
|
return $factory->filename;
|
||||||
@ -348,6 +347,6 @@ final class Runner implements RunnerInterface
|
|||||||
);
|
);
|
||||||
}, $occurrences, array_keys($occurrences)));
|
}, $occurrences, array_keys($occurrences)));
|
||||||
|
|
||||||
$this->pending = $tests;
|
$this->pending = array_merge($this->pending, $tests);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user