File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ public function runTest(string $testPath): int
9696 TestSuiteBuilder::from ($ testSuite ),
9797 );
9898
99+ EventFacade::emitter ()->testRunnerStarted ();
100+
101+ if ($ this ->configuration ->executionOrder () === TestSuiteSorter::ORDER_RANDOMIZED ) {
102+ mt_srand ($ this ->configuration ->randomOrderSeed ());
103+ }
104+
99105 (new TestSuiteFilterProcessor ())->process ($ this ->configuration , $ testSuite );
100106
101107 if ($ filter !== null ) {
@@ -228,12 +234,6 @@ private function bootstrap(): void
228234 $ extensionRequiresCodeCoverageCollection ,
229235 );
230236
231- EventFacade::emitter ()->testRunnerStarted ();
232-
233- if ($ this ->configuration ->executionOrder () === TestSuiteSorter::ORDER_RANDOMIZED ) {
234- mt_srand ($ this ->configuration ->randomOrderSeed ());
235- }
236-
237237 $ this ->hasBeenBootstrapped = true ;
238238 }
239239
You can’t perform that action at this time.
0 commit comments