-
Notifications
You must be signed in to change notification settings - Fork 822
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
DEP Use PHPUnit 11 #11361
DEP Use PHPUnit 11 #11361
Conversation
aff6913
to
0017f81
Compare
0017f81
to
1835859
Compare
2a5cb16
to
04ba00c
Compare
@@ -134,7 +134,6 @@ protected function withBaseFolder($folder, $callback) | |||
|
|||
/** | |||
* Submit a get request | |||
* @uses Director::test() |
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.
As far as I can tell @uses
was for code-coverage
I'm not sure what the replacement for @uses
is sebastianbergmann/phpunit#4502
This was already not-recommended as @uses ClassName::methodName (not recommended because too fine-grained)
We're not doing any sort of code-coverage at this point
I did try using #[UsesMethod('Director', 'test')]
however it will complain Attribute "PHPUnit\Framework\Attributes\UsesMethod" cannot target method (allowed targets: class)
I've elected to just remove these instead
04ba00c
to
c875b45
Compare
5f8c960
to
eae82cf
Compare
7101d11
to
9238c84
Compare
9238c84
to
68c5db9
Compare
68c5db9
to
67c7010
Compare
9878ee6
to
8bdeb50
Compare
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.
Mostly looks good, few changes requested.
I won't look at the other module PRs just yet as they may need to change based on the changes I've requested.
b1592ce
to
540fcd7
Compare
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.
LGTM, will merge once all other PRs are approved
a25843e
to
e2010cf
Compare
e2010cf
to
9a92488
Compare
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.
Changes approved
Issue silverstripe/.github#305
PHPUnit 10 removed the ability to unit test Error's, Deprecation's, Warning's and Strict's, so I've set a custom error handler to convert all those to unit test specific exceptions instead
I've also updated a couple of dependencies which PHPUnit 11 requires: