-
Notifications
You must be signed in to change notification settings - Fork 825
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
Upgrade master to PHPUnit 8 #9166
Conversation
This is the first version of phpunit that will work on php 7.4 without patches.
Note that any project will need to do this to work with phpunit 8, but it’s a pretty straightforward regex to do so. The following methods need to have “: void” added: setUp(), tearDown(), setUpBeforeClass(), tearDownAfterClass() It would be useful to build upgrader config for this if possible.
Looks like recipe-testing needs a bump too. Sounds good to me though! |
@@ -110,7 +110,7 @@ use SilverStripe\Dev\SapphireTest; | |||
|
|||
class PageTest extends SapphireTest | |||
{ | |||
public function setUp() | |||
public function setUp(): void |
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.
This is the kind of thing that would ideally be able to be automated by the upgrader, since it's going to be very common in modules and projects. Relevant issue: silverstripe/silverstripe-upgrader#175
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.
Merge on green
Grr behat-extension also needs a bump. Stupid ball of mud! |
replaced by #9443 |
This is the first version of phpunit that will work on php 7.4 without patches.