-
Notifications
You must be signed in to change notification settings - Fork 18
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
Convert the test suite to PHPUnitPolyFills and update to PHP 8 #17
Conversation
The test suite itself is not changed. For now we test only on Ubuntu and macOS because we need sudo.
The file is deprecated for recent PHPUnit.
This implies to delete AllTests.php
The @pear team is down? :/ There are 2 recent PRs in this repository. At the same time, it is possible to add the "Issues" section? Thanks in advance. Note: @schengawegga has done a lot of works recently... |
Thank you @ashnazg ! |
Thanks :)
Ah, I forgot your request. I still don't have enough power for that but I will talk to @ashnazg about the best course of action. Or maybe even better @Neustradamus, subscribe to the pear-general ML and ask yourself :) |
This PR ports the test suite to PHPUniPolyFills which allow the test suite to run on many versions of PHPUnit (this library is recommended on PHPUnit home page so I think it's a robust solution). Therefore, we can run on all current versions of PHP.
There is almost no change to the code itself except:
Yoast\PHPUnitPolyfills\TestCases\TestCase
so they must implementset_up
/tear_down
(instead ofsetUp
/tearDown
). See the doc here.AllTests.php
because I could not port it. AFAIU, it doesn't change the tests.This PR is based on the branch used for PR #16 (so this one must be merged first and I must rebase). It only adds d6dd558 and 74c8855.
Also it replaces #15.