Skip to content

Commit

Permalink
StandardTestSuiteLoader - Fix loading of PSR-0 classes (9.x variant)
Browse files Browse the repository at this point in the history
  • Loading branch information
totten authored and sebastianbergmann committed Aug 11, 2022
1 parent 9ffcbc6 commit aaa98ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Runner/StandardTestSuiteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public function load(string $suiteClassFile): ReflectionClass

break;
}

if (stripos(substr($loadedClass, $offset - 1), '_' . $suiteClassName) === 0) {
$suiteClassName = $loadedClass;

break;
}
}
}

Expand Down

0 comments on commit aaa98ac

Please sign in to comment.