Skip to content

Commit

Permalink
Sort test classes alphabetically by their prettified name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 21, 2023
1 parent 5370de1 commit c1cfaf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Logging/TestDox/TestMethod/TestResultCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Logging\TestDox;

use function assert;
use function ksort;
use function usort;
use PHPUnit\Event\Code\TestMethod;
use PHPUnit\Event\Code\Throwable;
Expand Down Expand Up @@ -83,6 +84,8 @@ static function (TestDoxTestMethod $a, TestDoxTestMethod $b): int
$result[$prettifiedClassName] = TestResultCollection::fromArray($tests);
}

ksort($result);

return $result;
}

Expand Down

0 comments on commit c1cfaf8

Please sign in to comment.