Loading...
 
Skip to main content

Upgrade Tiki tests to use PHPUnit 11.x

Status
Pending
Subject
Upgrade Tiki tests to use PHPUnit 11.x
Category
  • Feature request
Feature
Infrastructure
Resolution status
Needs discussion
Submitted by
Marc Laporte
Lastmod by
Marc Laporte
Rating
(0)
Description

Tiki 28.x requires PHP 8.1 so we are at PHPUnit 10: https://phpunit.de/supported-versions.html

We should move to PHP 8.2 or:

"Write your tests for PHPUnit 11.x and run them on PHPUnit 6.4 - 11.x
The polyfills have been setup to allow tests to be forward-compatible. What that means is, that your tests can use the assertions supported by the latest PHPUnit version, even when running on older PHPUnit versions.

This puts the burden of upgrading to use the syntax of newer PHPUnit versions at the point when you want to start running your tests on a newer version. By doing so, dropping support for an older PHPUnit version becomes as straight-forward as removing it from the version constraint in your composer.json file."

https://github.com/Yoast/PHPUnit-Polyfills

Solution
Workaround
Importance
2
Easy to solve?
2
Priority
4
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8699
Created
Thursday 03 October, 2024 16:21:26 UTC
by Marc Laporte
LastModif
Friday 07 November, 2025 20:00:27 UTC


Show PHP error messages