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

API phpunit 9 support #736

Merged

Conversation

emteknetnz
Copy link
Contributor

@emteknetnz emteknetnz commented Nov 5, 2021

Issue silverstripe/silverstripe-framework#10019

Unit tests pass locally with phunit 9.5.10

Free GitHub action CI to replace Travis CI (which no longer runs) - however I don't have enough permissions on this repo for it to trigger.

Tag 4.6.0 upon merge

@emteknetnz emteknetnz force-pushed the pulls/4/sapphire-test-nine branch from 54bccbb to 4ebb657 Compare November 5, 2021 00:53
@emteknetnz emteknetnz changed the title API phpunit support API phpunit 9 support Nov 5, 2021
@tractorcow
Copy link
Collaborator

Nice job, although the 4 branch is a bit out of date (we are on 5, ready to release 6 soon I think).

@tractorcow tractorcow merged commit 95c35ac into tractorcow-farm:4 Nov 5, 2021
@tractorcow
Copy link
Collaborator

image

@tractorcow
Copy link
Collaborator

tractorcow commented Nov 8, 2021

There was an error

PHP Fatal error:  Trait 'DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts' not found in /home/runner/work/silverstripe-fluent/silverstripe-fluent/vendor/silverstripe/reports/tests/ReportAdminTest.php on line 14

Looks like the silverstripe tests ecosystsem is still a nightmare. :)

@emteknetnz emteknetnz deleted the pulls/4/sapphire-test-nine branch November 8, 2021 00:30
@emteknetnz
Copy link
Contributor Author

emteknetnz commented Nov 8, 2021

Yes, it's currently in the middle of a somewhat messy transition all updating the dependencies under silverstripe/recipe-kitchen-sink from phpunit5 to phpunit 9

That particular issue is a backwards compat polyfill which turns out was more effort then it was worth, there's currently PRs open to get it removed from a few modules - silverstripe/silverstripe-framework#10019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants