Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Upgrade master to PHPUnit 8 #9166

wants to merge 2 commits into from

Conversation

sminnee
Copy link
Member

@sminnee sminnee commented Aug 3, 2019

This is the first version of phpunit that will work on php 7.4 without patches.

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.
@robbieaverill
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge on green

@sminnee
Copy link
Member Author

sminnee commented Aug 5, 2019

Grr behat-extension also needs a bump. Stupid ball of mud!

@dhensby
Copy link
Contributor

dhensby commented Mar 29, 2020

replaced by #9443

@dhensby dhensby closed this Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants