Skip to content

Fix PHPUnit version for tests#6736

Merged
Alkarex merged 1 commit intoFreshRSS:edgefrom
Art4:patch-1
Aug 26, 2024
Merged

Fix PHPUnit version for tests#6736
Alkarex merged 1 commit intoFreshRSS:edgefrom
Art4:patch-1

Conversation

@Art4
Copy link
Contributor

@Art4 Art4 commented Aug 26, 2024

While working on Art4#1 I noticed that wget https://phar.phpunit.de/phpunit.phar will download the newest version 11 of PHPUnit. With this version one will get a lot of deprecation warnings and errors running the tests.

I get the download url from the docs and have tested it successfully.

Changes proposed in this pull request:

  • Downloading PHPUnit 9 explicitly for manual tests without deprecation warnings and errors

How to test the feature manually:

  1. Follow the download instruction in tests/README.md
  2. Run php phpunit.phar --version to see the PHPUnit version
  3. Run the tests without warnings.

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

Additional information can be found in the documentation.

@Alkarex Alkarex added this to the 1.25.0 milestone Aug 26, 2024
@Alkarex Alkarex merged commit 6be9841 into FreshRSS:edge Aug 26, 2024
@Alkarex
Copy link
Member

Alkarex commented Aug 26, 2024

Thanks 👍🏻 I had a bit forgotten about that readme...
Give a try to make test-all

https://freshrss.github.io/FreshRSS/en/developers/03_Running_tests.html

@Alkarex
Copy link
Member

Alkarex commented Aug 26, 2024

Will have to be updated to a newer version with our imminent move to PHP 8.1+ #6711

@Art4 Art4 deleted the patch-1 branch August 26, 2024 08:00
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Aug 26, 2024
@Alkarex
Copy link
Member

Alkarex commented Aug 26, 2024

Alkarex@b657358

@Alkarex Alkarex modified the milestones: 1.25.0, 1.24.3 Aug 26, 2024
Alkarex added a commit that referenced this pull request Sep 6, 2024
* Upgrade to PHP 8.1
As discussed in #5474

https://www.php.net/releases/8.0/en.php
https://www.php.net/releases/8.1/en.php

Upgrade to available native type declarations
https://php.net/language.types.declarations

Upgrade to https://phpunit.de/announcements/phpunit-10.html which requires PHP 8.1+ (good timing, as version 9 was not maintained anymore)

Upgrade `:oldest` Docker dev image to oldest Alpine version supporting PHP 8.1: Alpine 3.16, which includes PHP 8.1.22.

* Include 6736
#6736
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.

2 participants