We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1282659 commit 933af56Copy full SHA for 933af56
src/Framework/TestSuite.php
@@ -12,7 +12,8 @@
12
use const PHP_EOL;
13
use function array_keys;
14
use function array_map;
15
-use function array_shift;
+use function array_pop;
16
+use function array_reverse;
17
use function assert;
18
use function call_user_func;
19
use function class_exists;
@@ -356,10 +357,12 @@ public function run(): void
356
357
$tests[] = $test;
358
}
359
360
+ $tests = array_reverse($tests);
361
+
362
$this->tests = [];
363
$this->groups = [];
364
- while ($test = array_shift($tests)) {
365
+ while (($test = array_pop($tests)) !== false) {
366
if (TestResultFacade::shouldStop()) {
367
$emitter->testRunnerExecutionAborted();
368
0 commit comments