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

[5.2][UnitTest] Use @backupGlobals to backup $_SERVER #44911

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

voronkovich
Copy link
Contributor

@voronkovich voronkovich commented Feb 15, 2025

Summary of Changes

Some tests need to backup the $_SERVER super-global array before execution. To do this they save the $_SERVER to protected property. But PHPUnit for a long time supports a @backupGlobal annotation for these cases.

Testing Instructions

Launch tests and ensure there are no errors:

php libraries/vendor/bin/phpunit tests/Unit

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@wilsonge wilsonge merged commit a1bdc9b into joomla:5.2-dev Feb 15, 2025
3 checks passed
@wilsonge wilsonge added this to the Joomla! 5.2.4 milestone Feb 15, 2025
@wilsonge
Copy link
Contributor

Thanks! As this is just tests, I'm merging on review with the tests passing. Additionally as just tests happy to merge this whilst we're in RC.

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