New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore support for PSR-0-style test-classes (#5020) #5021
Conversation
Codecov Report
@@ Coverage Diff @@
## 9.5 #5021 +/- ##
=========================================
Coverage 83.96% 83.97%
- Complexity 4611 4614 +3
=========================================
Files 272 272
Lines 11464 11468 +4
=========================================
+ Hits 9626 9630 +4
Misses 1838 1838
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@realFlowControl Do you have feedback on this? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I don't know if we actually need my suggested comment, but I would at least help the future @realFlowControl 😉
@sebastianbergmann - Comments were updated following @realFlowControl's suggestion. (If it helps, I also added comments on the main-psr0 variant of this branch.) It should be OK to re-run the test? |
Thank you! I have merged this into the However, the patch cannot simply be merged into |
Thank you @sebastianbergmann! I've submitted the port as #5030. |
As per #5020, this PR fixes loading of test-classes which have underscore-based namespacing (e.g. loading
CRM_Utils_StringTest
in filetests/phpunit/CRM/Utils/StringTest.php
from example repo https://github.com/totten/phpunit-underscore-namespace). The PR also adds an end-to-end regression test.Note: The patch for
main
is very slightly different (and slightly shorter). I've only opened the PR for 9.x (since that's the older version with the bug), but you can seemain
patches at https://github.com/totten/phpunit/commits/main-psr0