Skip to content

Commit

Permalink
Fix bug where nested TestSuites were no longer seen by the sorter
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Nov 16, 2018
1 parent b1be2c8 commit 3a3a250
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runner/TestSuiteSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ function ($test) {
*/
private function getNormalizedTestName($test): string
{
if ($test instanceof TestSuite && !($test instanceof DataProviderTestSuite)) {
return $test->getName();
}

if ($test instanceof PhptTestCase) {
return $test->getName();
}
Expand Down

0 comments on commit 3a3a250

Please sign in to comment.