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

Convert the test suite to PHPUnitPolyFills and update to PHP 8 #17

Merged
merged 6 commits into from
Nov 24, 2024

Conversation

duboism
Copy link
Contributor

@duboism duboism commented Sep 13, 2024

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:

  • Test cases inherits from Yoast\PHPUnitPolyfills\TestCases\TestCase so they must implement set_up/tear_down (instead of setUp/tearDown). See the doc here.
  • I suppressed the file 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.

The test suite itself is not changed.
For now we test only on Ubuntu and macOS
because we need sudo.
@Neustradamus
Copy link

@duboism: Thanks for this new PR, hope that @pear team will look it...

@duboism duboism changed the title Convert the test suite to PHPUniPolyFills and update to PHP 8 Convert the test suite to PHPUnitPolyFills and update to PHP 8 Oct 1, 2024
@Neustradamus
Copy link

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...

@ashnazg ashnazg self-assigned this Nov 24, 2024
@ashnazg ashnazg merged commit c005732 into pear:master Nov 24, 2024
@duboism duboism deleted the use_php_8 branch November 24, 2024 20:23
@duboism
Copy link
Contributor Author

duboism commented Nov 24, 2024

Thank you @ashnazg !

@Neustradamus
Copy link

Thanks to @duboism for this PR and @ashnazg for merging!
Good job!

Can you add "Issues" section?

@duboism
Copy link
Contributor Author

duboism commented Nov 25, 2024

Thanks to @duboism for this PR and @ashnazg for merging! Good job!

Thanks :)

Can you add "Issues" section?

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 :)

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.

3 participants